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.
TABLE 24.5
Properties of the AppointmentItem Object
Property
Description
AllDayEvent
True if the appointment is an all-day event, in which case the start and stop times
are ignored.
Body
The main body of the appointment.
Categories
Holds information about the appointment category, if any.
CreationTime
Returns a date value indicating the date and time when the appointment was
created.
Duration
The duration of the appointment, in minutes.
End
A date value specifying the ending date/time for the appointment.
Importance
Specifies the importance of the appointment. Possible values are indicated
by the constants olImportanceLow , olImportanceNormal , and
olImportanceHigh .
IsRecurring
True if the appointment is recurring.
Location
Specifies the location of the event.
ReminderMinutes
The number of minutes before the start of the appointment that the reminder
BeforeStart
is to be displayed.
ReminderSet
A True/False value specifying whether a reminder will be displayed before the
appointment start time.
Start
A date specifying the starting date/time for the appointment.
Subject
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)
Search JabSto ::




Custom Search