Chapter 8. Calendar Folders

Calendar folders store schedule information—i.e., appointments and meetings. Using CDO terminology, an appointment is an allocated block of time, and a meeting is an appointment that involves multiple people. Appointments (and therefore meetings) are stored as messages of a special type in the Messages collection of a calendar folder. A user may have more than one calendar folder, but only one of them is the default calendar folder. It is the default calendar folder that is considered to represent the user’s personal schedule.

CDO provides the ability to create appointments, meetings, and meeting requests programmatically. (A meeting request is another special kind of message, which is used to invite other users to a meeting. Don’t confuse a meeting request with the meeting itself.) Appointments and meetings are represented in CDO by AppointmentItem objects; meeting requests and responses to meeting requests are represented by MeetingItem objects. These relationships are shown in Figure 8-1.

The location of AppointmentItem and MeetingItem objects in the CDO object model

Figure 8-1. The location of AppointmentItem and MeetingItem objects in the CDO object model

This chapter shows how to create appointments, meetings, and meeting requests programmatically, including recurring appointments and meetings. Also explained are how to move and delete appointments, how to create recurring appointments and meetings, how to filter a calendar ...

Get CDO & MAPI Programming with Visual Basic: now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.