• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Send an email to attendees who have not responded

Slipstick Systems

› Developer › Send an email to attendees who have not responded

Last reviewed on February 8, 2018     45 Comments

This code began it's life in a macro that created a list of Meeting Attendees and Responses. With a few tweaks, the macro creates a new email message addressed to the invitees who have not yet responded.

Send an email to attendees who have not responded

This can be tweaked to send messages addressed to those who accepted, are tentative, or declined by changing the 0 in this line: If objAttendees(x).MeetingResponseStatus = 0 Then to the constant representing another response type.

In Outlook VBA, valid response statuses are:

ConstantResponse
0No response
1Organizer
2Tentative
3 Accepted
4Declined

Create a message addressed to attendees

  1. Press Alt+F11 to open the VBA editor.
  2. Right click on Project1 and choose Insert > Module.
  3. Paste the code below into the Module.
  4. Get the GetCurrentItem function from Outlook VBA: work with open item or selected item and paste it at the end of the module.

If location and attendees fields are not picked up when the macro runs against a selected meeting, open the meeting and run it.

To use, select a meeting on the calendar or open a meeting and run the macro. A new message will open, addressed to all invitees (required, optional, or resource) that has not yet responded. The organizer is not included in the message.

This macro works with either the selected item or opened item, using the GetCurrentItem function, which is available at "Outlook VBA: Work with Open Item or Selected Item"


Sub SendEmailtoNoRepsonse()
' Get the GetCurrentItem function from 
' http://slipstick.me/e8mio
Dim objApp As Outlook.Application
Dim objItem As Object
Dim objAttendees As Outlook.Recipients
Dim objAttendeeReq As String
Dim objOrganizer As String
Dim dtStart As Date
Dim dtEnd As Date
Dim strSubject As String
Dim strLocation As String
Dim strMeetStatus As String
Dim strCopyData As String
 
On Error Resume Next
 
Set objApp = CreateObject("Outlook.Application")
Set objItem = GetCurrentItem()
Set objAttendees = objItem.Recipients
 
' Is it an appointment
If objItem.Class <> 26 Then
  MsgBox "This only works with meetings."
  GoTo EndClean:
End If
 
' Get the data
dtStart = objItem.Start
dtEnd = objItem.End
strSubject = objItem.Subject
strLocation = objItem.Location
objOrganizer = objItem.Organizer
objAttendeeReq = ""
 
' Get The Attendee List
For x = 1 To objAttendees.Count

 ' 0 = no response, 2 = tentative, 3 = accepted, 4 = declined,
  If objAttendees(x).MeetingResponseStatus = 0 Then
    If objAttendees(x) <> objItem.Organizer Then
     objAttendeeReq = objAttendeeReq & "; " & objAttendees(x).Address
  End If
  End If

Next
  
 strCopyData = vbCrLf &  "-----Original Appointment-----" & vbCrLf & _
 "Organizer: " & objOrganizer & vbCrLf & "Subject:  " & strSubject & _
 vbCrLf & "Where:   " & strLocation & vbCrLf & "When:    " & _
 dtStart & vbCrLf & "Ends:      " & dtEnd
  
Dim objOutlookRecip As Outlook.Recipient
Set listattendees = Application.CreateItem(olMailItem)
  listattendees.Body = strCopyData
  listattendees.Subject = "Please respond to: " & strSubject
  listattendees.To = objAttendeeReq
  
For Each objOutlookRecip In listattendees.Recipients
objOutlookRecip.Resolve
Next

  listattendees.Display
  
   
EndClean:
Set objApp = Nothing
Set objItem = Nothing
Set objAttendees = Nothing
End Sub

Remove invitees who declined

This variation of the macro from J. Frohberg above will remove all person's who declined the meeting. It checks all meetings in the Calendar.

Sub Delete_All_Declined()

Dim oOL As New Outlook.Application
Dim oNS As Outlook.NameSpace
Dim objItem As Outlook.AppointmentItem

Set oOL = CreateObject("Outlook.Application")
Set oNS = oOL.GetNamespace("MAPI")
Set oAppointments = oNS.GetDefaultFolder(olFolderCalendar)

For Each objItem In oAppointments.Items

On Error Resume Next
x = 1
Do Until x > objItem.Recipients.Count

' 0 = no response, 2 = tentative, 3 = accepted, 4 = declined,
If objItem.Recipients(x).MeetingResponseStatus = 4 Then
If objItem.Recipients(x) objItem.Organizer Then
objItem.Recipients(x).Delete
x = x - 1
objItem.Save
End If
End If
x = x + 1
Loop

Next

MsgBox "Done"

Set oAppointmentItem = Nothing
Set oAppointments = Nothing
Set oNS = Nothing
Set oOL = Nothing
Set objItem = Nothing

End Sub

How to use the macros on this page

First: You need to have macro security set to low during testing. The macros will not work otherwise.

To check your macro security in Outlook 2010 and newer, go to File, Options, Trust Center and open Trust Center Settings, and change the Macro Settings. In Outlook 2007 and older, look at Tools, Macro Security.

After you test the macro and see that it works, you can either leave macro security set to low or sign the macro.

Open the VBA Editor by pressing Alt+F11 on your keyboard.

To put the code in a module:

  1. Right click on Project1 and choose Insert > Module
  2. Copy and paste the macro into the new module.

More information as well as screenshots are at How to use the VBA Editor

Send an email to attendees who have not responded was last modified: February 8th, 2018 by Diane Poremsky
Post Views: 61

Related Posts:

  • Create a List of Meeting Attendees and Responses
  • Send an Email When a Reminder Fires
  • Automatically Add a Category to Accepted Meetings
  • Outlook Meeting Request Tracking

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created 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.

Comments

  1. Cristhian says

    January 13, 2020 at 4:09 pm

    Hi

    This macro is very useful for me, but I have a question.
    I'd created recurrent meetings in a weekly / bi weekly basis for my customers, when I try to run this code for recurrent meetings. I received this error "You don't have appropriate permission to perform this operation on this line "objCopiedMeeting.Save" it creates a mess because duplicate the meeting and appears both the original and the copy, I need stop the code and delete the copy.

    But when I delete the copy, Outlook sent a notification for the customer

    I don't know how I can select one meeting, and on this selection, run the code only on this meeting

    Regards

    Reply
    • Diane Poremsky says

      January 14, 2020 at 12:19 am

      I will take a look at it.

      Copying meetings used to copy it as an appointment, not it copies it as a meeting.

      Reply
  2. Luís Carlos says

    May 22, 2019 at 8:36 am

    I loved this code!! I send a lot of invitations and it will be very usefull, thanks for sharing!!!

    Reply
  3. Steen B.N. CPH says

    January 7, 2019 at 5:28 am

    I have created an Outlook add-in from VB.Net to prepare a meeting forward message - with a dialog to set filter criterias for both the response type and also when the did respond.

    Reply
  4. Kaytilou says

    September 19, 2018 at 12:46 pm

    Many thanks for this macro, I've tried it and it is so closed of what I havve to do. Let me explain.

    I am in charge of organizing events/meeting for my company, sometimes with more that 100 people. I send meeting request. Some people answer, some don't and some on provisional which is very difficult for the follow up.

    What I do is open the meeting request, click on follow, uncheck people's request to those who have accepted the meeting and send back the request meeting with a wording asking for answering. I have to do it as many time as needed until getting all the answer. This may sound easy, but what a waste of time and especially when there are more than 50 people.

    Your macro "Send an email to attendees who have not responded" is perfect, but means that you send an email instead of sending back the request meeting.

    Do you think there will be a way to automate this by macro? If there is no solution, I will use your macro (send email) but I would love to find a solution, resending the request meeting without loosing people who have already accepted it.

    A very big thank to you, you would save my life, no longer spend a few hours restarting people. It is not often easy when these meetings are recurring every month.

    Wish you a great day

    Reply
    • Diane Poremsky says

      September 19, 2018 at 11:33 pm

      >>
      What I do is open the meeting request, click on follow, uncheck people's request to those who have accepted the meeting and send back the request meeting with a wording asking for answering.
      >>>
      Are you removing users and sending an update? That will cancel it for the people you removed.

      How do you need the macro automated?

      Reply
      • Kaytilou says

        October 11, 2018 at 2:05 pm

        Thank you Diane for your answer. I use to do exactly what you are doing, ( open the meeting request, click on follow, uncheck people's request to those who have accepted the meeting and send back the request meeting with a wording asking for answering) but sometime it take time specially when you have more than 50 people in the request. That is the reason I wanted to automate this function by a macro in order to save time.
        If you have the solution, it would be perfect. I wish you a great day :-)

  5. Chip Rose says

    October 23, 2017 at 10:11 pm

    Get Compile Error with "Set objItem = GetCurrentItem()" being highlighted in the error in visual basic screen.

    Hopefully this is a problem with Outlook 2016 using 365?

    It would be great to have a fix... very much appreciate you going out of your way to enlighten us... again thanks. Chip.

    Reply
    • Diane Poremsky says

      October 23, 2017 at 11:35 pm

      Sorry about that - you need the function at https://www.slipstick.com/developer/outlook-vba-work-with-open-item-or-select-item/#getcurrentitem - this allows you to use it with either open or selected items. (I'll make note of that on the page)

      Reply
  6. BladerzZz says

    August 29, 2017 at 5:19 am

    Is it possible to get this as an Add-in in Outlook? As a macro it works so nice but i need it as a add-in.

    Reply
    • Diane Poremsky says

      August 30, 2017 at 12:43 am

      it could be compiled, if you have visual studio. (I'm not aware of any existing addins that offer this feature.)

      Reply
      • BladerzZz says

        August 30, 2017 at 6:33 am

        And you know maybe how to do this?

      • Diane Poremsky says

        October 23, 2017 at 11:48 pm

        It's beyond the scope of this article. I don't want to support users who run into problems trying to compile code, hence no articles that tell how to do it. There is a walkthrough at https://msdn.microsoft.com/en-us/library/cc668191(v=vs.120).aspx

  7. AJ Noto says

    April 12, 2016 at 2:51 pm

    This is sooo close to what I need but I cannot think of a way to tweak to for my needs... I am in charge of organizing meetings for my company (150+ people). However, depending on the conference room, there may only be space for a certain amount of people who accept meeting invitations (say 50ish people). But because the meetings are first come-first serve, once the room capacity is met I have to send individual emails to those who still accepted, but are now technically on a waiting list, alerting them to the fact there is no space left in the room.

    Is someone willing to please help me automate this? I thought of using an automated response rule based on subject line "meeting name" and "accepted", but cannot figure out how to delay sending the response until i have 50 "accepts" in a certain folder.

    Reply
    • Diane Poremsky says

      April 12, 2016 at 3:22 pm

      It's not an unusual request, I'm surprised no one has figured out a good solution.

      So you are moving the accepts to a specific folder? A macro could watch the folder and count the number of messages then trigger an autoreply. Even if you weren't moving the replies, a macro could still count, using the subject. Not sure how error-proof it will be... The big thing will be missing a malformed subject or if someone replies with the same subject. Undercounting wouldn't be so bad - people on the wait list would fill in.

      Setting it up each time could be a problem though....

      Reply
    • Diane Poremsky says

      April 12, 2016 at 4:22 pm

      The good news is that i have a working macro. It's based on the macro at https://www.slipstick.com/developer/fun-arrays-one-macro-many-replies/ - the possibly bad news - it stores the response count in the registry (in a corp environment, you might not have the permissions needed to write to it). You'd also need to update the macro with the meeting subject and room count each time you send a meeting request that needs limited. A first version of this macro is at count-room-size.txt.

      This is an itemadd macro that watches the inbox. Add the meeting subject and count to the arrSubject and arrRmSize, in the same spot for each. To test it you can accept a meeting (using a second account) then copy the acceptance and paste it in the inbox.

      Reply
      • Diane Poremsky says

        April 12, 2016 at 5:37 pm

        This version uses a text file. The registry version might be faster.

  8. Me says

    July 7, 2015 at 3:04 pm

    Is there anyway to use the forward meeting invite instead of just sending an email?
    That way if the recipients have misplaced the original invite, they can accept the notification.

    Reply
    • Diane Poremsky says

      July 7, 2015 at 9:40 pm

      You can right click on it in the calendar and choose Forward.

      Reply
      • SSethis says

        October 27, 2020 at 11:02 am

        Sorry is there a way to automatically do this and remove the people who have responded? I believe someone else asked a similar question but I don't think you answered. It's something so many people are desperate for. Essentially we need to prompt the people who haven't responded with an email they can click accept rather than a general email they can't directly action.

  9. George says

    February 11, 2015 at 11:12 pm

    I was able to create document also and i did this
    But now I Have an issue that in word document it comes like:

    No response: aaa
    accepted: bbb
    No response : xxx
    declined: yyy
    No response : ggg

    I do not want it like this. Please help asap.

    Reply
    • Diane Poremsky says

      February 15, 2015 at 11:45 pm

      If you want all of the accepted together, and the declined together, you'll need to create arrays then write to the document. I don't have ant code samples that do that, unfortunately.

      Reply
  10. George says

    February 11, 2015 at 12:51 am

    it is a msgbox. I am planning to copy the values . The list of attendees and their responses to a word document. Unfortunately am not able to copy the values in vba to word. For example:

    Not responded:
    aaa
    bbb
    ccc
    Respnded:
    ddd
    ffff
    ggg
    Tentative:
    xxx
    yyy

    I need them like these in a word document. I was able to creat and open a document and write Not Responded, Responded, Tentative into it.

    But the values am not able to. Please help.

    Thanks In advance

    Reply
  11. George says

    February 5, 2015 at 4:58 am

    also i did in my program to show the status of email id's in a msgbox. Unfortunately when i send an invite to 600 people only 20 were shown in the msgbox. Looks like there is a limitation. is there any other way?

    Reply
    • Diane Poremsky says

      February 8, 2015 at 12:42 am

      It sounds like there is a character limit. Some of the dialogs have a limit of 256 characters.

      Are you using a msgbox or do you mean the To field? It might be possible to split the list into multiple messages.

      Reply
  12. George says

    February 5, 2015 at 4:56 am

    thanks i knew that way. I wanted to know if there is any VBA code whch does it..

    Reply
    • Diane Poremsky says

      February 8, 2015 at 12:39 am

      I don't have any VBA samples that do this, sorry.

      Reply
  13. George says

    February 3, 2015 at 8:46 am

    hi,

    please tell me if i need to send the email to a distribution list. how to do for the same.
    Thanks in advance.

    Reply
    • Diane Poremsky says

      February 3, 2015 at 11:57 pm

      You'll need to expand the DL field - on the scheduling tab, click the + to expand the DL. It *should* keep the responses for those who replied and add everyone else to the list. Then you can send and email to those who haven't responded...

      Reply
  14. Rolly Estrada says

    January 2, 2015 at 5:37 pm

    Thanks. Interestingly, the code is not breaking out when i stepped in to the code through breakpoints.

    Reply
    • Diane Poremsky says

      January 3, 2015 at 11:02 pm

      Use the step button and watch it - does it skip everything? Oh, and comment out on error resume next. With that gone, run it and see where it stops.

      Reply
  15. Rolly Estrada says

    January 2, 2015 at 12:26 am

    Thanks. I did that but no new effect. I did an isolation and have tried other macros on this blog: 'ReplyAllwithAttachments' and 'ReplywithAttachments' and both ran seamlessly.

    Reply
    • Diane Poremsky says

      January 2, 2015 at 1:08 am

      I tried it with the code on the site (to confirm it wasn't messed up) and it worked perfectly - a new email was created with the time and date of the selected meeting, addressed to people who did not respond. It will generate an email if you select an appointment, but the to field is blank.

      Did you try stepping through the code to see if/where it fails?

      Reply
  16. Rolly says

    January 1, 2015 at 10:39 pm

    Hi Diane,

    I pasted everything as instructed above, and added the macro in QAT which I named as SendEmailtoNoResponse. I have opened an appointment where I was an organizer and after hitting the macro's button in my QAT, it just does nothing. My macro security is set to notification to all macros. Where do you think I've gone wrong? Thank you.

    regards,
    Rolly

    Reply
    • Diane Poremsky says

      January 1, 2015 at 10:56 pm

      Set macro security to allow all macros and restart outlook - does it work now? That will tell us if the problem is with the macro or somewhere else.

      Reply
  17. Dan says

    October 1, 2013 at 2:51 pm

    In your "Remove invitees who declined" Macro, is there a way to make it operate only on a selected meeting, instead of all meetings in the calendar?

    Reply
    • Diane Poremsky says

      October 1, 2013 at 5:00 pm

      Yes, replace For Each objItem In oAppointments.Items with Set objItem = Application.ActiveExplorer.Selection.Item(1) and delete Next (Before MsgBox "Done").

      Reply
  18. Charlotte McClintic says

    February 27, 2013 at 7:59 am

    Syntax Error
    Ln93,col 1

    Please , I am a basic user 101.....copied and pasted as instructed

    Reply
    • Diane Poremsky says

      February 27, 2013 at 10:14 am

      Are any of the lines in red color? That will tell us where the error is.

      Reply
  19. Curt Miller says

    January 18, 2013 at 12:40 pm

    This is great! What would have to be changed to remove the meeting organizer from the email addressees of non-responders?

    Reply
    • Diane Poremsky says

      January 18, 2013 at 8:53 pm

      You can change the line to this
      If objAttendees(x).MeetingResponseStatus = 0 And objAttendees(x) <> objItem.Organizer Then
      to leave off the organizer

      Reply
  20. Fred Durst says

    January 16, 2013 at 5:53 am

    I am getting the same error. Where specifically do you need to paste the "work with open item or selected item at the end of the module. Do you need to replace the current Set objitem?

    Reply
    • Diane Poremsky says

      January 16, 2013 at 6:17 am

      Get the GetCurrentItem function from work with open or selected items and paste it at the end of this macro, after the End Sub. (I don't include the function on the page because it may cause Google to think the page has too much copied content.)

      Reply
  21. Paul Abke says

    December 7, 2012 at 8:05 am

    Sorry, I missed the step about addind the function.

    Reply
  22. Paul Abke says

    December 7, 2012 at 7:59 am

    I get an error at the statement: Set objItem = GetCurrentItem()
    I am using Outlook 2010 with Office 365

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • How to Hide or Delete Outlook's Default Folders
  • This operation has been cancelled due to restrictions
  • Change Outlook's Programmatic Access Options
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • Remove a password from an Outlook *.pst File
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.