Muokkaa

Jaa


AppointmentItem.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 an AppointmentItem object.

Example

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

Sub Appointment() 
 
'Creates an appointment item to access ShowCategoriesDialog 
 
 Dim olApptItem As Outlook.AppointmentItem 
 
 'Create appointment item 
 
 Set olApptItem = Application.CreateItem(olAppointmentItem) 
 
 
 
 olApptItem.Body = "Please meet with me regarding these sales figures." 
 
 olApptItem.Recipients.Add ("Jeff Smith") 
 
 olApptItem.Subject = "Sales Reports" 
 
 'Display the item 
 
 olApptItem.Display 
 
 'Display the Show categories dialog 
 
 olApptItem.ShowCategoriesDialog 
 
 
 
End Sub

See also

AppointmentItem 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.