TaskItem.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 TaskItem object.
Example
The following Microsoft Visual Basic for Applications (VBA) example creates a new task item, displays the item on the screen, and opens up the Show Categories dialog box.
Sub TaskItem()
'Creates a task item to access ShowCategoriesDialog
Dim olmyTaskItem As Outlook.TaskItem
'Create task item
Set olmyTaskItem = Application.CreateItem(olTaskItem)
olmyTaskItem.Subject = "Sales Reports"
'Display the item
olmyTaskItem.Display
'Display the Show categories dialog
olmyTaskItem.ShowCategoriesDialog
End Sub
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for