Excel VBA: Send Email to Multiple Recipients
In this article
Yes, you can send one email to many people from Excel using VBA and Outlook. The shortest working approach is to build a string of addresses separated by semicolons and assign it to the .To property of a MailItem, then call .Send. For example: .To = "a@x.com; b@y.com". That single line handles multiple recipients; you do not need a loop unless you want personalised messages or separate emails per person. This guide covers the reliable setup, the difference between To, Cc and Bcc, how to pull addresses from a worksheet range, and what to check when Outlook refuses to send.
What You'll Need
- Excel desktop for Windows or Mac (VBA is not available in Excel for the web).
- Outlook desktop installed and signed in with a configured mail account. The VBA method below uses Outlook automation; it will not work with webmail-only accounts.
- Macro security set to allow the workbook to run (Trust Center settings).
- A list of recipient addresses, either typed into the code or stored in a worksheet column.
Step-by-Step
- Open the VBA editor. In Excel, press Alt+F11 (on Mac, Fn+Alt+F11 or use the Developer tab). If the Developer tab is hidden, enable it via File > Options > Customize Ribbon and tick Developer. Menu labels can differ slightly by version and platform.
- Insert a module. In the VBA editor, right-click your workbook name in the Project pane and choose Insert > Module. This is where the macro will live.
- Add the Outlook reference (recommended). In the editor, go to Tools > References and tick Microsoft Outlook Object Library. This enables early binding, which gives you IntelliSense and clearer errors. If you skip this, use late binding (see Tips) so the macro still runs on other machines.
- Write the basic macro. Paste this into the module, replacing the addresses with your own:
The semicolon is the separator Outlook expects in English locales. In some regional settings Outlook uses a comma; if addresses do not resolve, try commas or let Outlook auto-resolve after typing.Sub SendToMany() Dim olApp As Outlook.Application Dim olMail As Outlook.MailItem Set olApp = New Outlook.Application Set olMail = olApp.CreateItem(olMailItem) With olMail .To = "alice@example.com; bob@example.com; carol@example.com" .Subject = "Monthly update" .Body = "Hello team," & vbCrLf & vbCrLf & "Please review the attached sheet." .Display ' use .Send to send immediately End With Set olMail = Nothing Set olApp = Nothing End Sub - Run it. Press F5 in the editor or Alt+F8 in Excel and choose SendToMany. Using
.Displayfirst lets you inspect the message before sending. Change to.Sendonly when you are confident. - Pull addresses from a worksheet. If your addresses sit in column A from row 2 down, build the string with a loop:
This removes the trailing semicolon, which some Outlook versions flag as an empty recipient.Dim r As Long, addr As String For r = 2 To Cells(Rows.Count, 1).End(xlUp).Row If Trim(Cells(r, 1).Value) <> "" Then addr = addr & Cells(r, 1).Value & ";" End If Next r If Len(addr) > 0 Then addr = Left(addr, Len(addr) - 1) olMail.To = addr - Add Cc and Bcc. Use
.Ccfor visible copies and.Bccfor hidden ones:.Bcc = "audit@example.com". Bcc is the correct choice when recipients should not see each other's addresses. - Attach a file if needed. Use
.Attachments.Add "C:\Reports\summary.xlsx". The path must exist on the machine running the macro; network paths work if the user has access. - Save and close. Save the workbook as .xlsm (macro-enabled) so the code persists. Close the VBA editor and test from Excel.
Common Mistakes
- Using a comma-separated string in a locale where Outlook expects semicolons, or vice versa. Test with two addresses first.
- Leaving a trailing semicolon, which can produce an empty recipient and a send error.
- Typing display names without addresses ("Bob") instead of full addresses; Outlook may not resolve them reliably from VBA.
- Forgetting the Outlook reference and then wondering why
Outlook.Applicationis undefined. Either add the reference or switch to late binding. - Using
.Sendduring testing, which fires emails before you have checked the recipient list. - Assuming Excel for the web supports VBA; it does not.
Tips
- Use late binding to avoid reference issues on other computers: declare
Dim olApp As Objectand useCreateObject("Outlook.Application"). You lose IntelliSense but gain portability. - Keep a dedicated worksheet column for addresses and validate it with a simple check for "@" before building the string.
- Use
.Displayin development and switch to.Sendonly in the final version. - For personalised emails (different greeting per person), loop through the list and create a separate
MailItemfor each recipient rather than one message with many addresses. - If Outlook is not the default mail client, automation may fail; the method relies on Outlook being installed and configured.
Troubleshooting
If the macro errors with "Object required" or "User-defined type not defined", the Outlook reference is missing or Outlook is not installed. Add the reference or switch to late binding. If you get a permission or security prompt, Outlook may be blocking programmatic access; check Trust Center settings and allow access for the session. If addresses do not resolve, replace display names with full email addresses and check the separator. If .Send does nothing, confirm the account is configured and that the message has at least one valid recipient. If the macro runs but no email appears, look in Outlook's Outbox or Sent Items; a stuck message often means Outlook is offline or the profile needs repair. For attachment errors, verify the file path and that the file is not open exclusively by another program.
Frequently Asked Questions
Can I send to multiple recipients without a loop?
Yes. Put all addresses in one string separated by semicolons and assign it to .To. A loop is only needed for personalised messages or separate emails.
How do I hide recipients from each other?
Use the .Bcc property instead of .To. Addresses in Bcc are not visible to other recipients.
Does this work on Mac?
VBA in Excel for Mac can automate Outlook for Mac, but behaviour and reference names can differ. Test the macro on the target machine; some properties may not be supported.
Why does Outlook ask for permission when the macro runs?
Outlook's Trust Center can block programmatic sending. Adjust the setting or use a trusted location for the workbook. Do not disable security features you do not understand.
Can I send from a shared mailbox?
Yes, if the account has permission. Set the .SendUsingAccount property to the shared account's Account object, or use .SentOnBehalfOfName where policy allows.