Yes, you can send email from Excel through Outlook with a short VBA macro. The macro builds an Outlook message object, fills in the recipient, subject and body from cells on your sheet, and either sends it or saves it as a draft for you to check. Nothing extra needs installing, because Outlook ships with the automation library the macro uses. Run the macro from the workbook while Outlook is open on the same PC and signed in to the account you want to send from.

This is ideal for recurring mail like status updates, invoices or reminders where the names and details already live in a spreadsheet. One warning before you start: a macro that calls Send fires instantly with no chance to review. Build the macro so it displays the draft first, then add automatic sending only once you trust the output.

What You'll Need

  • The desktop version of Outlook signed in on the same Windows PC as Excel. Outlook on the web, Outlook for Mac and Excel for the web cannot run or drive this macro the same way.
  • The desktop version of Excel, with a workbook saved as .xlsm (macro-enabled) so your code is kept.
  • The Developer tab visible: File > Options > Customize Ribbon, tick Developer in the right-hand list, then OK. Menu labels can differ slightly between versions.
  • Macro security set to allow macros in trusted documents. Trusted Locations under File > Options > Trust Center is the safest way to permit your own files.
  • A sheet with your data laid out in columns, for example Name in A, Email in B, Subject in C and Message in D, with a header row in row 1 and data starting in row 2.

Step-by-Step

  1. Lay out the sheet cleanly. Put one recipient per row. Keep each email address in its own cell with no stray spaces, and make sure every recipient has a subject and message. The macro reads cells by position, so a shifted column sends wrong text to the wrong person.
  2. Open the editor. On the Developer tab click Visual Basic, or press Alt+F11. In the Project window right-click your workbook, choose Insert > Module. A blank code window appears.
  3. Add a reference for early binding (optional but helpful). In the editor choose Tools > References and tick Microsoft Outlook Object Library. This lets you use IntelliSense and named constants. If writing for several PCs, late binding avoids the reference entirely.
  4. Paste a minimal, safe macro into the module. This version displays each message instead of sending it, so you can inspect it first:
    Sub EmailFromSheet()
        Dim olApp As Object, olMail As Object
        Dim ws As Worksheet, r As Long, lastRow As Long
        Set olApp = CreateObject("Outlook.Application")
        Set ws = ThisWorkbook.Sheets("Sheet1")
        lastRow = ws.Cells(ws.Rows.Count, "B").End(xlUp).Row
        For r = 2 To lastRow
            If Trim(ws.Cells(r, "B").Value) <> "" Then
                Set olMail = olApp.CreateItem(0)
                With olMail
                    .To = ws.Cells(r, "B").Value
                    .Subject = ws.Cells(r, "C").Value
                    .Body = ws.Cells(r, "D").Value
                    .Display
                End With
            End If
        Next r
        Set olMail = Nothing
        Set olApp = Nothing
    End Sub
  5. Match the sheet name and columns. Change "Sheet1" to the exact tab name, and swap the letters inside Cells(r, "B") if your columns sit elsewhere. Column B is used to detect the last row, so it must hold the email addresses.
  6. Run it once with test data. Put your own address in the first row only, then press F5. A draft window should open with your details filled in. Close it without sending and fix anything that looks wrong.
  7. Run it against the real list after the test looks right. Each row opens its own draft window. Outlook may space out messages if your account has sending limits, so expect a slight pause with long lists.
  8. Switch to sending once you trust it. Replace .Display with .Send. Add .Attachments.Add "C:\Reports\summary.pdf" on the line before the send if you need a file attached, using a full path that exists on that PC. Keep a backup of the workbook before the first real send.
  9. Save the workbook as .xlsm with File > Save As and choose the macro-enabled format. Plain .xlsx drops the code silently on close.

Common Mistakes

  • Leaving spaces or line breaks in email cells. Langauge aside, Outlook can reject "name <a@b.com> " with trailing spaces, or worse, ignore the address.
  • Pointing at the active sheet instead of a named sheet, so the macro reads whatever tab happens to be open.
  • Using .Send while building the macro, then wondering why nothing can be reviewed. Start with .Display.
  • Hard-coding a single address in the code for a list that has many rows, and sending every message to one person.
  • Saving as .xlsx, closing, reopening, and finding the module empty.
  • Forgetting that .Body is plain text. HTML tags pasted into body text appear literally unless you set .HTMLBody instead.
  • Building paths from "C:\Users\..." that only exist on the author's machine, so attachments fail on other PCs.

Tips

  • Add a .CC, .BCC or .Importance line inside the With block when you need them.
  • Use .HTMLBody with a simple HTML string for bold text, tables or links, and test with a single recipient first.
  • Name your sheet and columns once and reference them in code through cells rather than rewriting the macro for each new layout.
  • Test with a copy of the workbook and a single row, then grow the list gradually.
  • Keep a blank row at the bottom of your data, or clear formatting below the last row, so the last-row detection stays accurate.
  • Log each send in a spare column so you can tell which rows went out and which failed.

Troubleshooting

Nothing happens when I run it. Check Outlook is open and signed in; the automation creates a message inside an existing Outlook session. Then confirm macros are enabled and that you actually pressed F5 in the right module. If Excel displays a security warning, use Trusted Locations for your folder rather than lowering the global macro setting.

“Object required” or “Type mismatch.” Usually a reference is missing or a cell contains an error value. Set the Outlook Object Library reference, then clear #N/A cells from the email column.

“The Outlook object model guard” warning. Outlook blocks automatic sending from other programs as a safety measure. Closing the message manually and letting the macro continue past the warning is the usual remedy. Running the macro on an up-to-date desktop Outlook is more predictable than older versions, and no code trick reliably bypasses the guard.

Emails go to the wrong person. Stop and inspect the column letters. Change one of them in the test row, rerun with your own address, and confirm the correct values land in the message.

Attachments fail. Check the path exists and the file is not open in another program. Use absolute paths, and avoid special characters.

It stops partway through a long list. Your account may have daily recipient limits, or a cell may be invalid. Work in smaller batches and fix the offending row before rerunning.

If that did not work, restart Outlook and Excel, confirm the workbook is still .xlsm, and step through the code line by line with F8 to see exactly where it stops.

Frequently Asked Questions

Can I send without Outlook installed?

No, not with this approach. The macro automates Outlook specifically. Alternatives include exporting your list to CSV and using a mail-merge style tool or your email provider's bulk sending, but those are different tools.

Does it work on a Mac?

Excel for Mac has a VBA editor, but Outlook for Mac does not expose the same automation interface reliably. Treat these steps as Windows desktop instructions.

How do I add an attachment?

Add .Attachments.Add "C:\full\path\file.pdf" inside the With block before .Display or .Send. Use a full path that exists on the machine running the macro.

Will recipients see each other?

Only if you put every address on the same message. Each row creates its own separate email, so recipients in different rows never see one another.

Can I send rich text or a table?

Yes, by building an HTML string and assigning it to .HTMLBody instead of .Body. Test with one recipient, because malformed HTML shows up as code in the message.

Can I add a signature?

If you display the message, your default Outlook signature appears and you can keep it. If you send automatically, add the signature text to the body yourself or read it from Outlook's signature files.