Creating exceptions in a RecurrencePattern

L

LOGIKonline

Can someone please assist - I have ripped far too many hairs out o
this.

In my project I have included Redemption, OOM, and CDO (although no
CDOEX.dll - which I tried but did not see the Exception object)

I can not seem to find an Add method on the Exception Object under OOM
Redemption does not have such an object, and my CDO version does no
seem to show this object either.

I know how to programattically access and iterate through th
RecurrencePattern for an appointment but can not seem to figure out ho
to add an Exception. I have seen code showing the magic Add method an
am stumped to where to find such a DLL - since I located CDOEX.dll o
my Exchange Server and copied to my dev machine and still produce n
Add method.

Any help would be very much appreciated.
Dav
 
K

Ken Slovak - [MVP - Outlook]

There is no Add method for the Exceptions collection.

To create an Exception in that collection you have to access a specific
instance of the recurring series and either delete it or change it. That
will add it to the Exceptions collection.

To get a specific instance and make it an Exception you'd use something like
this:

If oAppt.IsRecurring Then
Set oRecurPattern = oAppt.RecurrencePattern
set oInstance = oRecurPattern(1/1/2007)
If Not (oInstance Is Nothing) Then
oInstance.Delete
End If
End If
 

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