Share via


JournalItem.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 JournalItem object.

Example

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

Sub JournalItem() 
 
 'Creates a journal item to access ShowCategoriesDialog 
 
 Dim olmyJournalItem As Outlook.JournalItem 
 
 'Create journal item 
 
 Set olmyJournalItem = Application.CreateItem(olJournalItem) 
 
 
 
 olmyJournalItem.Body = "Sales figure notes." 
 
 olmyJournalItem.Subject = "Sales Reports" 
 
 'Display the item 
 
 olmyJournalItem.Display 
 
 'Display the Show categories dialog 
 
 olmyJournalItem.ShowCategoriesDialog 
 
End Sub

See Also

Concepts

JournalItem Object Members

JournalItem Object