Attachment Issues

Can an Excel Hyperlink Formula Add an Email Attachment?

John WilsonJohn Wilson Dec 2, 2026 869 views

Question details

The user wants to create an email with a workbook or another file attached using an Excel hyperlink or formula.

Product
Microsoft Excel
Device & OS
not provided
Scenario
Creating an email from a spreadsheet with a file already attached.
Observed behavior
A mailto hyperlink can open an email draft, but the mailto protocol does not support adding an attachment.
Before you start

Decide whether you can attach the file manually or need an automated Outlook draft. For the VBA method, you need desktop Excel, classic Outlook for Windows configured with an email account, and the full path to the file.

Solution 1Recommended

Open an email draft from Excel and attach the file manually

Use a mailto hyperlink when a manually added attachment is sufficient.

1
Create the hyperlink

In an Excel cell, enter =HYPERLINK("mailto:email@example.com?subject=Monthly%20Report","Email report"), replacing the recipient and subject as needed.

2
Open the draft

Click the Email report link in the cell to open a draft in your configured email application.

3
Attach and send the file

In the email draft, select Attach File or the paperclip button, choose the workbook or other file, and review the message before selecting Send.

Open an email draft from Excel and attach the file manually
Mailto limitation: A mailto link can supply details such as a recipient and subject, but it cannot add a file attachment.
Free Microsoft Office alternative

Work with Excel spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing spreadsheets. Its support for common Office formats makes it easy to move existing files, although it does not remove the mailto attachment limitation.

Open and edit Microsoft Excel XLSX and XLS filesPrepare spreadsheet reports that you can attach to email manuallyUse familiar spreadsheet tools in a lightweight office suiteMove common Office documents into WPS Office without starting over
QA img-9

Frequently Asked Questions

Can I add an attachment parameter to a mailto hyperlink?

No. The mailto protocol does not support file attachments. Open the draft from the hyperlink and use the email application's Attach File or paperclip button.

Can Excel send the active workbook with VBA?

Yes. In desktop Excel, a macro can use ActiveWorkbook.SendMail Recipients:="email@example.com", Subject:="Monthly Report" to send the active workbook through a supported mail client. This sends rather than opening a draft for review.

How can I attach a different file from an Excel macro?

With classic Outlook on Windows, create an Outlook mail item in VBA and use its Attachments.Add method with the file's full path. Use .Display to review the draft before sending.

Why does the Outlook VBA example not work with new Outlook?

New Outlook for Windows does not support the Outlook automation used by the example. Use classic Outlook for that macro, or attach the file manually in your email application.