>>>>>>>> Here's the code.
>>>>>>>>
>>>>>>>> Set objCDOSession = CreateObject("MAPI.Session")
>>>>>>>> objCDOSession.Logon , , , , , , strMAPIProfile
>>>>>>>> Set objCalFolder =
>>>>>>>> objCDOSession.GetDefaultFolder(CdoCALENDAR_FOLDER)
>>>>>>>> Set objCalItemColl = objCalFolder.Messages
>>>>>>>> Set objCalItemFilter = objCalItemColl.Filter
>>>>>>>> Set objCalItemFilterField1 =
>>>>>>>> objCalItemFilter.Fields.Add(CdoPR_START_DATE, dtmTimeEnd) 'This is
>>>>>>>> the END date! The values for start and end times must be reversed.
>>>>>>>> See
http://support.microsoft.com/kb/192404.
>>>>>>>> Set objCalItemFilterField2 =
>>>>>>>> objCalItemFilter.Fields.Add(CdoPR_END_DATE, dtmTimeStart) 'This is
>>>>>>>> the START date! The values for start and end times must be
>>>>>>>> reversed. See
http://support.microsoft.com/kb/192404.
>>>>>>>> For Each objCalItemSingle In objCalItemColl
>>>>>>>> If objCalItemSingle.AllDayEvent Then
>>>>>>>> strEmailBodyText = strEmailBodyText & "SUBJECT: [ALL DAY EVENT] " &
>>>>>>>> objCalItemSingle.Subject & vbCRLF & " | START TIME: " &
>>>>>>>> objCalItemSingle.StartTime & vbCRLF & _
>>>>>>>> " | END TIME: " & objCalItemSingle.EndTime & vbCRLF & " | DETAILS
>>>>>>>> (IF AVAILABLE): " & objCalItemSingle.Text & vbCRLF & vbCRLF
>>>>>>>> Else
>>>>>>>> strEmailBodyText = strEmailBodyText & "SUBJECT: " &
>>>>>>>> objCalItemSingle.Subject & vbCRLF & " | START TIME: " &
>>>>>>>> objCalItemSingle.StartTime & vbCRLF & _
>>>>>>>> " | END TIME: " & objCalItemSingle.EndTime & vbCRLF & " | DETAILS
>>>>>>>> (IF AVAILABLE): " & objCalItemSingle.Text & vbCRLF & vbCRLF
>>>>>>>> End If
>>>>>>>> Set objCalItemSingle = objCalItemColl.GetNext
>>>>>>>> Next
>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I created a VBS script using CDO to look at all the items in a
>>>>>>>>>> particular Exchange mailbox calendar between a specific date
>>>>>>>>>> range. I've almost got eveverything working, but one thing I
>>>>>>>>>> noticed is that all day events which span several days actually
>>>>>>>>>> consists of only a single entry in the calendar. Outlook is smart
>>>>>>>>>> enough to show the event spanning several days, but it only
>>>>>>>>>> stores the entry on the start date. In case my explanation wasn't
>>>>>>>>>> clear, I'll give an example:
>>>>>>>>>>
>>>>>>>>>> I have an all day event that spans Monday, Tuesday, and
>>>>>>>>>> Wednesday.
>>>>>>>>>> When viewed in Outlook, I can see the event spanning all three
>>>>>>>>>> days.
>>>>>>>>>> When my script runs and looks for items for that entire week, the
>>>>>>>>>> script only sees one entry for the 3-day event, and that's on
>>>>>>>>>> Monday. When the script looks at Tuesday and Wednesday, it
>>>>>>>>>> doesn't see the event at all.
>>>>>>>>>>
>>>>>>>>>> It seems that this issue is by design, and seems logical to me,
>>>>>>>>>> so I understand why this is happening. Is there any way to work
>>>>>>>>>> around this, so that when my script looks at Tuesday and
>>>>>>>>>> Wednesday, it would see the 3-day event?