Consulting

Results 1 to 2 of 2

Thread: Turning OFF high importance

  1. #1
    VBAX Regular
    Joined
    Dec 2017
    Posts
    16
    Location

    Turning OFF high importance

    Hi all,

    I am new to outlook automation. I have searched online but most of the post are telling me how to turn on importance. I need to turn the high importance off. Is there anyway to do it using vba?

    Cheers,
    Bryan

  2. #2
    You need to set the importance to normal importance e.g.

    Sub Importance_ON_Off()
    Dim olItem As Object
        On Error Resume Next
        Set olItem = ActiveExplorer.Selection.Item(1)
        'olItem.Importance = olImportanceHigh
        'MsgBox "Item has high importance"
        olItem.Importance = olImportanceNormal
        MsgBox "Item has normal importance"
        olItem.Save
    lbl_Exit:
        Set olItem = Nothing
        Exit Sub
    End Sub
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •