A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to find Appointment Item by EntryID?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 23rd 06, 07:15 PM posted to microsoft.public.outlook.program_vba
deko
external usenet poster
 
Posts: 15
Default How to find Appointment Item by EntryID?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 10:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.