Microsoft Office Tutorials and References
In Depth Information
Once you have this reference, you can start accessing the individual calendar items. Though
several kinds of objects can be present in the Calendar folder, the most important one is the
AppointmentItem object, which represents one-time appointments, recurring appointments,
all-day events, and multi-day events. This object has a set of properties that hold information about
the appointment. The AppointmentItem properties that you are most likely to need in your
macro programming are described in Table 24.5.
Properties of the AppointmentItem Object
True if the appointment is an all-day event, in which case the start and stop times
The main body of the appointment.
Holds information about the appointment category, if any.
Returns a date value indicating the date and time when the appointment was
The duration of the appointment, in minutes.
A date value specifying the ending date/time for the appointment.
Specifies the importance of the appointment. Possible values are indicated
by the constants olImportanceLow , olImportanceNormal , and
True if the appointment is recurring.
Specifies the location of the event.
The number of minutes before the start of the appointment that the reminder
is to be displayed.
A True/False value specifying whether a reminder will be displayed before the
appointment start time.
A date specifying the starting date/time for the appointment.
The subject of the appointment.
Creating a New Appointment
To create a new appointment, you use the CreateItem() method. The syntax is
Dim NewAppt As Outlook.AppointmentItem
Set NewAppt = CreateItem(olAppointmentItem)