M
Matthew Gonzalez
Hello everyone, I am currently using the following code to get a list of
appointments for the day for several users (myUserList) and it works
great except it ignores Private Appointments. I don't need any details
on the appointment but I would like it to at least block out that time
so we don't think the time is free. Here is the piece of code:
' Get users appointments from Calendar folder.
Set myNS = myOlApp.GetNamespace("MAPI")
Set CalendarFolder = myNS.GetSharedDefaultFolder(myUserList(I),
olFolderCalendar)
Set myAppts = CalendarFolder.Items
I then sort, include recurrences, sort again, then feed each appointment
into a text string which gets pasted into a new Word document. So what
do I need to add/change to get it to include private appointments?
Thanks!
Matthew Gonzalez
appointments for the day for several users (myUserList) and it works
great except it ignores Private Appointments. I don't need any details
on the appointment but I would like it to at least block out that time
so we don't think the time is free. Here is the piece of code:
' Get users appointments from Calendar folder.
Set myNS = myOlApp.GetNamespace("MAPI")
Set CalendarFolder = myNS.GetSharedDefaultFolder(myUserList(I),
olFolderCalendar)
Set myAppts = CalendarFolder.Items
I then sort, include recurrences, sort again, then feed each appointment
into a text string which gets pasted into a new Word document. So what
do I need to add/change to get it to include private appointments?
Thanks!
Matthew Gonzalez