Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / October 2006

Tip: Looking for answers? Try searching our database.

Creating exceptions in a RecurrencePattern

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LOGIKonline - 06 Oct 2006 15:42 GMT
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

--
LOGIKonlin

Posted from - http://www.officehelp.i
Ken Slovak - [MVP - Outlook] - 06 Oct 2006 20:13 GMT
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

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Can someone please assist - I have ripped far too many hairs out on
> this.
[quoted text clipped - 15 lines]
> Any help would be very much appreciated.
> Dave
LOGIKonline - 06 Oct 2006 21:36 GMT
Thank you Ken... I really appreciate it

--
LOGIKonlin

Posted from - http://www.officehelp.i
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.