Autoaccept a Meeting Request using Rules

Written by Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999 and involved in IT support since 1985, Diane is the author of several books and video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums. +Diane Poremsky+

28 responses to “Autoaccept a Meeting Request using Rules”

  1. Sadie

    Thank you so much for posting this code. I’m wondering if there is somethig similar for “not sending a response”. So, when I’ve added the rules you have above with the code, the meeting notice accepts, but it pops open a response email where I could type a response. I have to click send on that email for it to be added to my calendar. can that step be elimanted with a rule??

  2. LT

    This doesn’t seem to work with Outlook 2010. Any suggestion?

  3. Christopher Pharo Glæserud

    Change the last part of the code to:

    Set oResponse = oAppt.Respond(olMeetingAccepted, True)
    oResponse.Close (olSave)

    And the appointment will be saved, no response will be sent.

    I also added

    oRequest.Delete

    at the bottom to remove it from my inbox once processed.

    This is Outlook 2010 32bit.

  4. Jamie Kitson

    oRequest.Delete didn’t work for me so I just added “delete” to the rule.

  5. Christopher Pharo Glæserud

    It *worked* in 2010/32. After I rebooted, the script no longer seems to run? It’s there, it’s selectable from the rules wizard, but doesn’t appear to be executed. Added a breakpoint, and that never triggers.

  6. Christopher Pharo Glæserud

    Seems like scripts run from the rules have a tendency to wreak havoc with the VBAProject.OTM-file. Deleted it, and now the script runs fine.

  7. Ron

    Also had a problem – it worked once, then never again. Exchange 2003 with OL2010 on terminal server. I am looking for some app to do this now – hoping codetwo may do it.

  8. Ron

    I tried the setting to enable all macro, but it made no difference.

  9. Christopher Pharo Glæserud

    Same issue. Ended up running “selfcert.exe” which comes with the office package, create a certificate, and then choosing Tools – Digital signature in the VBA editor, choosing the newly created certificate as a signature. Upon restart, outlook asks if I want to trust it, I answer “trust all from…” and the macro has been running fine ever since.

  10. David

    I implemented the code above, along with the “Save with no response sent ” and “Delete from the Inbox once processed” portions. Unfortunately, when the script runs, I get a security popup (the one where I have to wait five seconds to click yes). I have signed the script using my CAC digital certificate and also set the macro security settings to medium. Anyone have any ideas?

    I am running WINXP SP3 and Outlook 2003 SP3 in a WIN2003 domain environment with Exchange 2003 servers.

  11. David

    Forgot to add-
    I also tried signing with a regular code signing certificate and that didn’t work.

    I tried the code below and it seemed to break the auto accept code above.

    ——–

    OlSecurityManager.DisableOOMWarnings = True
    On Error Goto Finally

    Sub AutoAcceptMeetings(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(olMeetingAccepted, True)
    oResponse.Close (olSave)
    End Sub

    Finally:
    OlSecurityManager.DisableOOMWarnings = False
    ——-

  12. David

    The CAC cert is trusted through a CA and the code signing cert is a selfcert and then I trusted myself.

  13. David Hall

    What if there is a meeting already scheduled for the same time of the new request? Is there any way of addressing a scheduling conflict?

  14. Chris

    Is there a way to Send a response without having the invitation pop up when received? I want the organizer to be able to see who has accepted without the recipient having to type in a message. In other words, the equivalent of “Send the response now.” when accepting meetings… but automatic.

    Thanks! :)

  15. Chris

    I want the meeting organizer to be able to see who has accepted the invitation. Adding oResponse.Close (olSave) works perfectly but does not alow the organizer to see that it was accepted. So I do want a “response” to be sent to the meeting organizer in a sense… but I dont want the user to get a popup where they have to accept/enter a response manually.

  16. Me

    is there a way to accept canceled meetings? delete the if they were canceled?

  17. Laza_C

    This is awesome… I just had ~140 meeting requests from the same person in my inbox to set up multiple monthly meetings for the whole year and this accepted and processed them w/in 45 seconds… saved me an hr! Thanks a lot!!! Very cool stuff.

  18. Henrique

    A pop up shows up and I have to wait 5 seconds to be able to click Ok. I think David had the same issue, couldn’t identify any solution in the forum. Any ideas ?

  19. Eric

    I was only able to open VB editor once (and was interrupted half way through), but now the ALT+F11 to open it no longer works. Any thoughts ?

Leave a Reply

More in Calendar
Make “no reminder” the default for new appointments

Learn how to change the reminder settings so a reminder is not set on new appointments.

Close