J
Jakob Olsen
Hi,
I am trying to copy appointments from Outlook2003 out to another program and
I am having trouble with recurring appointments.
I have this code, that is supposed to copy appointments i a specified period
of time:
Set objOlItems = objOlCaFolder.Items
objOlitems.IncludeRecurrences = True
objOlitems.Sort "[Start]"
objOlitems.Find "[Start] > 01-04-2005 AND [End] < 01-05-2005
For Each objOlItem In objOlitems
If objOlItem.Class = olAppointment Then
...do stuff
End If
Next
My problems are:
1) I have only found that the EntryID on the AppointmentItem is unique but
with recurring items they all have the same EntryID. Is there another
property I can use to disinguish between recurring appointments?
2) Eventhough I have set the Find-property all items that are recurring
return all recurrences as long as the master is between the two dates. This
is a big problem since some recurrences are indefinite and therefore becomes
a neverending loop.
Please help!
Y/Jakob
I am trying to copy appointments from Outlook2003 out to another program and
I am having trouble with recurring appointments.
I have this code, that is supposed to copy appointments i a specified period
of time:
Set objOlItems = objOlCaFolder.Items
objOlitems.IncludeRecurrences = True
objOlitems.Sort "[Start]"
objOlitems.Find "[Start] > 01-04-2005 AND [End] < 01-05-2005
For Each objOlItem In objOlitems
If objOlItem.Class = olAppointment Then
...do stuff
End If
Next
My problems are:
1) I have only found that the EntryID on the AppointmentItem is unique but
with recurring items they all have the same EntryID. Is there another
property I can use to disinguish between recurring appointments?
2) Eventhough I have set the Find-property all items that are recurring
return all recurrences as long as the master is between the two dates. This
is a big problem since some recurrences are indefinite and therefore becomes
a neverending loop.
Please help!
Y/Jakob