Last active
August 29, 2015 14:27
-
-
Save thure/63c16f64d086d62a1047 to your computer and use it in GitHub Desktop.
Revisions
-
thure revised this gist
Aug 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Public Sub AutoDeclineInvitation(Item As Outlook.MailItem) Dim cAppt As AppointmentItem Dim oResponse -
thure created this gist
Aug 19, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ Sub AutoDeclineInvitation() Dim cAppt As AppointmentItem Dim oResponse Set cAppt = GetCurrentItem.GetAssociatedAppointment(False) If cAppt.ReminderSet Then Set oResponse = cAppt.Respond(olMeetingDeclined, True) Else GetCurrentItem.GetAssociatedAppointment(True) Set oResponse = cAppt.Respond(olMeetingAccepted, True) End If oResponse.Send Set cAppt = Nothing End Sub