AppointmentItem.ShowCategoriesDialog 方法 (Outlook)

顯示 [顯示類別] 對話方塊,可以用來選取與項目主旨相對應的類別。

語法

expressionShowCategoriesDialog

表達 代表 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 支援與意見反應