Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Importance Property
Collapse the table of content
Expand the table of content

MailItem.Importance Property (Outlook)

Returns or sets an OlImportance constant indicating the relative importance level for the Outlook item. Read/write.

expression .Importance

expression A variable that represents a MailItem object.

This property corresponds to the MAPI property PidTagImportance.

This Visual Basic for Applications (VBA) example checks if the item displayed in the topmost inspector is sent by 'Dan Wilson' with 'High' importance. If it is, then it displays a message box to the user. Before running this example, replace 'Dan Wilson' with a valid name in your address book.

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
© 2015 Microsoft