collection of calendar items

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

How are the individual items (appointments) in a
collection of calendar items returned when iterating
through the collection. Tried to sort but to no avail.

objFolder.Items.sort "Start"


thanks
 
-----Original Message-----
How are the individual items (appointments) in a
collection of calendar items returned when iterating
through the collection. Tried to sort but to no avail.

objFolder.Items.sort "Start"


thanks
.
Stumbled on the answer for those interested.
To sort the calendar items so they will appear in say
start date order do the following:
Dim objFolder As Outlook.MAPIFolder
Dim objItem As Object
Dim colItems as items
Dim objItem2 as AppointmentItem

once you find the calendar you are looking for
Set objFolder = objItem
Set colItems = objFolder.Items
colItems.Sort "[Start]"
now use the colItems in
For Each objItem2 In colItems
 
Back
Top