PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Making recurring events non recurring

Reply

Making recurring events non recurring

 
Thread Tools Rate Thread
Old 26-02-2005, 10:03 PM   #1
=?Utf-8?B?am9zaA==?=
Guest
 
Posts: n/a
Default Making recurring events non recurring


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.
  Reply With Quote
Old 27-02-2005, 09:07 AM   #2
Michael Bauer
Guest
 
Posts: n/a
Default Re: Making recurring events non recurring

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.


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off