![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
It sounds like you want to change the Categories value for all the
occurrences in a series - is that right? In that case you need to make the change to the recurrence master. I assume from your description that "olai" is obtained by iterating through an Items collection where IncludeRecurrences = True. Yes - my code is automation from Access. I get a collection of Outlook.Items and loop through it to update each appointment's Categories property. What I was missing was an understanding of the RecurrenceState method. Now my code looks like this: Dim olai as Outlook.AppointmentItem For each olai in olItems If olai.Categories strNewCategoryName Then If olai.IsRecurring Then If olai.RecurrenceState = olApptMaster Then olai.Categories = strNewCategoryName End If Else olai.Categories = strNewCategoryName End If End If Next The GetItemFromID method was what I was looking for in my original post, but thanks to Dmitry Streblechenko's reply to a different post, I'm not sure I need it for this procedure. Thanks for the tip nonetheless. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Invalid EntryID | KatTheBird | Outlook - Using Contacts | 0 | March 7th 06 06:45 AM |
How do I find out who put an appointment or meeting request in my calendar? | rskretting | Outlook - Calandaring | 1 | February 17th 06 09:23 AM |
How to find out which is the current item shown in the inspector? | Michael Reukauff | Add-ins for Outlook | 1 | January 25th 06 02:33 PM |
New ContactItem with same EntryID | jim | Add-ins for Outlook | 3 | January 20th 06 07:01 PM |
Scope of StoreID and EntryID | Scott | Outlook and VBA | 4 | January 20th 06 06:35 PM |