View Single Post
  #6  
Old December 13th 06, 05:05 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to modify an AppointmentItem?

For any appointment check for IsRecurring. If it is recurring use the
GetRecurrencePattern method to get the RecurrencePattern for the
appointment. Never reference that if it's not recurring, it will convert the
appointment into a recurring one.

Once you have the pattern you can get the master appointment as
RecurrencePattern.Parent. To get a specific occurrence use the
GetOccurrence(StartDate) method. Iterate the Exceptions collection to find
any existing exceptions and deleted occurrences. With the occurrence you can
then change start/end, which will add that appointment to the Exceptions
collection when you save the changes.

Look in the VBA Help for information and code snippets on working with those
methods and properties.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"OctopusThu" wrote in message
...
Hi, Ken. Thanks for your help so far.
I've done some further tests and discovered that ONLY the "Start" and
"End"
fields of an RECURRING AppointmentItem cannot be modified. Other fields of
a
recurring item and all fields of a non-recurring item can be modified.
Are there possibilities that I can modify the "Start" and "End" fields?


Ads