Find the selected occurrence of a recurring appointment

G

GillesC

Hi,
I'm stuck in my devlopment because I can't find a way to know which specific
occurrence of a recurring appointment is selected/modified by a user.

I tried to use the SectionChange event of the explorer object or the write
event of the appointment item. But in both cases I'm only able to find the
parent appointment object, I can't even know which day was clicked.

Please help!
 
K

Ken Slovak - [MVP - Outlook]

Changes to instances of a recurring appointment will cause that modified
appointment to be placed in the Exceptions collection of the
RecurrencePattern. You can iterate the collection when your code starts and
then check it again to see if there are any changes to it.
 
G

GillesC

Thanks for your reply.
I'm going to try to sort this out this way.
It would have been much easyier however if I could directly point the
selected occurence. Oulook itself "knows" it as it impacts the
RecurrencePattern.Exceptions collection straight...

Thanks again anyway.
Gilles
 
K

Ken Slovak - [MVP - Outlook]

What do you think Outlook is doing under the hood? It's doing the same thing
I suggested, except it's doing it in C++ code using Extended MAPI and not
the Outlook object model.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top