AppointmentItem.ShowCategoriesDialog メソッド (Outlook)

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

構文

ShowCategoriesDialog

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

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

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

関連項目

AppointmentItem オブジェクト

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

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