Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook VBA - Changing AppointmentItem details

Status
Not open for further replies.

liamdoyle

Programmer
Nov 26, 2007
11
GB
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
 
Ahh, just found it.

AppointmentItem.Save

That's a win

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top