PDA

View Full Version : Turning OFF high importance



jackCell
01-23-2018, 01:56 AM
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

gmayor
01-23-2018, 05:06 AM
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