Share via


PostItem.ShowCategoriesDialog メソッド (Outlook)

[分類の表示] ダイアログ ボックスを表示し、ユーザーがアイテムの件名に対応する分類項目を表示できるようにします。

構文

ShowCategoriesDialog

PostItem オブジェクトを表す変数。

次の Microsoft Visual Basic for Applications (VBA) の例は、新しい投稿アイテムを作成し、そのアイテムを画面に表示して、[分類の表示] ダイアログ ボックスを開きます。

Sub PostItem() 
 
 'Creates a post item to access ShowCategoriesDialog 
 
 Dim olmyPostItem As Outlook.PostItem 
 
 'Create post item 
 
 Set olmyPostItem = Application.CreateItem(olPostItem) 
 
 
 
 olmyPostItem.Body = "Please comment on these sales figures." 
 
 olmyPostItem.Subject = "Sales Reports" 
 
 'Display the item 
 
 olmyPostItem.Display 
 
 'Display the Show categories dialog 
 
 olmyPostItem.ShowCategoriesDialog 
 
End Sub

関連項目

PostItem オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。