I currently have a script that I attach to the rule so that I can automatically reject meeting requests with specific topics:
Sub AutoDeclineMeetings(oRequest As MeetingItem) If oRequest.MessageClass <> "IPM.Schedule.Meeting.Request" Then Exit Sub End If Dim oAppt As AppointmentItem Set oAppt = oRequest.GetAssociatedAppointment(True) Dim oResponse Set oResponse = oAppt.Respond(olMeetingDeclined, True) oResponse.Send End Sub
However, this sends a response back to the meeting organizer, who sends them out unnecessarily, because they donβt care if I attend or not.
How can I change this code so that the meeting does not appear on my calendar and that no response is sent? I tried just calling both oAppt.Delete and oRequest.Delete , but this does not remove the item from my calendar.
In fact, what I'm looking for is equivalent to manually selecting Reject β Don't send a response in the meeting request.
outlook-vba
Sterno
source share