Hi all,
I need to be able to programmatically change values in an AppointmentItem (specifically I want to change the ReminderSet property).
To access the items in my calendar I call a method for recursively finding the folder, then i access the Items collection within the MAPIFolder object. From here I am calling the index of the Items collection to access the particular appointment item.
Unfortunately when i now change the ReminderSet flag to false, this changes whilst the Sub is running but the next time it runs, it has reset to its original value.
I assume this is because the Items collection is passing me the AppointmentItem ByVal rather than ByRef, so i'm only editing a copy, but I don't know how to change this.
Any ideas? Thanks very much for your help
L
I need to be able to programmatically change values in an AppointmentItem (specifically I want to change the ReminderSet property).
To access the items in my calendar I call a method for recursively finding the folder, then i access the Items collection within the MAPIFolder object. From here I am calling the index of the Items collection to access the particular appointment item.
Unfortunately when i now change the ReminderSet flag to false, this changes whilst the Sub is running but the next time it runs, it has reset to its original value.
I assume this is because the Items collection is passing me the AppointmentItem ByVal rather than ByRef, so i'm only editing a copy, but I don't know how to change this.
Any ideas? Thanks very much for your help
L