次の方法で共有


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

Concepts

DistListItem Object

DistListItem Object Members