MailItem.Importance (Outlook)

Returns or sets an OlImportance constant indicating the relative importance level for the Outlook item. Possible return values are olImportanceHigh - Item is marked as high importance, olImportanceLow - Item is marked as low importance, olImportanceNormal - Item is marked as medium importance.

This property corresponds to the MAPI property PidTagImportance.


Sub CheckSenderName 
 
 Dim myItem As Outlook.MailItem 
 
 
 
 Set myItem = Application.ActiveInspector.CurrentItem 
 
 If myItem.Importance = 2 And _ 
 
 myItem.SenderName = "Dan Wilson" Then 
 
 MsgBox "This message is sent by your manager with High importance." 
 
 End If 
 
End Sub