편집

다음을 통해 공유


DistListItem.ShowCategoriesDialog method (Outlook)

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

Syntax

expression. ShowCategoriesDialog

expression A variable that represents a DistListItem object.

Example

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

See also

DistListItem Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.