Tagged "visual-basic"

Automatically Decline and Delete or Accept and Delete Outlook 2010 Meetings

You can follow the Microsoft TechNet guide to add VisualBasic code in Outlook rules. You can just replace the code they give with this: Sub AutoDeclineMeetings(oRequest As MeetingItem) ' If its not a meeting, we don't process If oRequest.MessageClass <> "IPM.Schedule.Meeting.Request" Then Exit Sub End If ' Get the appointment in the meeting Dim oAppt As AppointmentItem Set oAppt = oRequest.GetAssociatedAppointment(True) ' Send a decline response Dim oResponse Set oResponse = oAppt.