Programming the Calendar
Outlook's calendar can be used to schedule one-time events as well as recurring events. You can also send a meeting request via e-mail to one or more people. The meeting is automatically added to their calendar if they accept the invitation, and a confirmation is sent to the original request sender. To work with the calendar, you must obtain a reference to Outlook's Calendar folder. This is done in the same way as getting a reference to the Inbox folder, as covered earlier in the chapter, except that you pass the constant olFolderCalendar to the GetDefaultFolder method:
Dim olApp As Outlook.Application Dim MAPINameSpace As Outlook.NameSpace Dim CalendarFolder As Outlook.MAPIFolder Set olApp = New Outlook.Application ...
Get Office® XP Development with VBA 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.