D
dbornt
I'm trying to send meeting cancelation but it's not working. Any suggestions?
What the following does is send an update notice, but it doesn't say that
the meeting was cancelled and the invitee was not given a choice to delete
from their calendar.
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olfolder = olNS.GetDefaultFolder(olFolderCalendar)
Set olApptItems = olNS.GetDefaultFolder _
(olFolderCalendar).Items
strSearch = "Test Meeting Invitation"
MsgBox olApptItems.Find("[Subject] = """ & strSearch & """")
Set olCurrAppt = olApptItems.Find("[Subject] = """ & strSearch & """")
While TypeName(olCurrAppt) <> "Nothing"
olCurrAppt.MeetingStatus = olMeetingCanceled
olCurrAppt.Send
olCurrAppt.Delete
Set olCurrAppt = olApptItems.FindNext
Wend
Set olApptItems = Nothing
Set olCurrAppt = Nothing
Set olfolder = Nothing
Set olNS = Nothing
Set olApp = Nothing
What the following does is send an update notice, but it doesn't say that
the meeting was cancelled and the invitee was not given a choice to delete
from their calendar.
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olfolder = olNS.GetDefaultFolder(olFolderCalendar)
Set olApptItems = olNS.GetDefaultFolder _
(olFolderCalendar).Items
strSearch = "Test Meeting Invitation"
MsgBox olApptItems.Find("[Subject] = """ & strSearch & """")
Set olCurrAppt = olApptItems.Find("[Subject] = """ & strSearch & """")
While TypeName(olCurrAppt) <> "Nothing"
olCurrAppt.MeetingStatus = olMeetingCanceled
olCurrAppt.Send
olCurrAppt.Delete
Set olCurrAppt = olApptItems.FindNext
Wend
Set olApptItems = Nothing
Set olCurrAppt = Nothing
Set olfolder = Nothing
Set olNS = Nothing
Set olApp = Nothing