locked
Split an appointment item into two parts RRS feed

  • Question

  • How can I split a selected appointment item into two parts using vba.  The appointment item is part of a series but I only want to affect the occurance not the series.  We are using this calendar as our employee schedule and have set up their shifts as reoccuring appointments.  So when an employee is sick we actually select the appointment accurance and split the appointment into two parts and enter another appointment that shows the sick day.  We are using outlook 2010
    Saturday, January 5, 2013 4:34 PM

Answers

  • Call AppointmentItem.GetRecurrencePattern.GetOccurrence to open the AppointmentItem corresponding to the instanc in question. After you modify the AppointmentItem object and cal AppointmentItem.Save, you will have an exception created in the master appointment series.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

    • Marked as answer by Quist Zhang Monday, January 14, 2013 2:20 PM
    Saturday, January 5, 2013 4:53 PM