PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Making recurring events non recurring
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Making recurring events non recurring
![]() |
Making recurring events non recurring |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I have a new motorola v710 phone and it has the ability to sync with outlook.
Unfortunately the phone does not recognize events that are recurring. I'd like to write a script that would search all items in my calendar and if they are recurring, make them into non recurring items but not delete any of the originall recurances. For example if i have a series set for going to the gym on mondays, wednesdays and fridays until june 1st, the script will keep all instances of the events but would no longer keep them together as a series. any help would be appreciated thanks. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi Josh,
please take a look at the IncludeRecurrences property (Object Browser) and press F1 for a code sample. Without this property set to True, the Calendar Items collection doesn´t contain all items. A series without an end date means there are a never ending number of items. (The count property is restricted to 2147483647, because of it´s variable type). You could this restrict to e.g. 100 years (birthdays) or sync for the next 12 months only etc. If you loop through your items collection check each item´s RecurrenceState property. If the value is olApptOccurrence then copy the item. The AppointmentItem has a Copy method. I´ve just tested a little bit, it seems that this method works but raises an error. So I´m not sure if I should recommend this method. Otherwise you´d need to create a new AppointmentItem with the CreateItem method and copy each property, links, attachments etc. -- Viele Grüße Michael Bauer "josh" <josh@discussions.microsoft.com> wrote in message news:E50B43A7-1499-4B5F-9562-039B781A04F1@microsoft.com... > I have a new motorola v710 phone and it has the ability to sync with outlook. > Unfortunately the phone does not recognize events that are recurring. > > I'd like to write a script that would search all items in my calendar and if > they are recurring, make them into non recurring items but not delete any of > the originall recurances. For example if i have a series set for going to the > gym on mondays, wednesdays and fridays until june 1st, the script will keep > all instances of the events but would no longer keep them together as a > series. > > any help would be appreciated thanks. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

