DistListItem.ShowCategoriesDialog Method (Outlook)

Displays the Show Categories dialog box, which allows you to select categories that correspond to the subject of the item.

expression .ShowCategoriesDialog

expression A variable that represents a DistListItem object.

The following Microsoft Visual Basic for Applications (VBA) example creates a new distribution list item, displays the item on the screen, and opens up the Show Categories dialog box.

Sub Appointment() 
 
 'Creates an distribution list item to access ShowCategoriesDialog 
 
 Dim olDistListItem As Outlook.DistListItem 
 
 'Create distribution list item 
 
 Set olDistListItem = Application.CreateItem(olDistributionListItem) 
 
 
 
 'Display the item 
 
 olDistListItem.Display 
 
 'Display the Show categories dialog 
 
 olDistListItem.ShowCategoriesDialog 
 
End Sub 
 

Show:
© 2015 Microsoft