AppointmentItem.Save 方法 (Outlook)

將 Microsoft Outlook 專案儲存至目前的資料夾,如果這是新專案,則儲存至專案類型的 Outlook 預設資料夾。

語法

運算式

表達 代表 AppointmentItem 物件的 變數。

範例

此 Microsoft Visual Basic for Applications (VBA) 範例會建立約會專案,並在儲存之前設定 AppointmentItem.ReminderSet 屬性。

Sub AddAppointment() 
 Dim apti As Outlook.AppointmentItem 
 
 Set apti = Application.CreateItem(olAppointmentItem) 
 apti.Subject = "Car Servicing" 
 apti.Start = DateAdd("n", 16, Now) 
 apti.End = DateAdd("n", 60, apti.Start) 
 apti.ReminderSet = True 
 apti.ReminderMinutesBeforeStart = 60 
 apti.Save 
End Sub

另請參閱

AppointmentItem 物件

如何:將約會 XML 資料匯入 Outlook 約會物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應