Düzenle

Aracılığıyla paylaş


AppointmentItem.Save method (Outlook)

Saves the Microsoft Outlook item to the current folder or, if this is a new item, to the Outlook default folder for the item type.

Syntax

expression.Save

expression A variable that represents an AppointmentItem object.

Example

This Microsoft Visual Basic for Applications (VBA) example creates an appointment item and sets the AppointmentItem.ReminderSet property before saving it.

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

See also

AppointmentItem Object

How to: Import Appointment XML Data into Outlook Appointment Objects

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.