Can an Excel Hyperlink Formula Add an Email Attachment?
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.
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.
Open an email draft from Excel and attach the file manually
Use a mailto hyperlink when a manually added attachment is sufficient.
In an Excel cell, enter =HYPERLINK("mailto:email@example.com?subject=Monthly%20Report","Email report"), replacing the recipient and subject as needed.
Click the Email report link in the cell to open a draft in your configured email application.
In the email draft, select Attach File or the paperclip button, choose the workbook or other file, and review the message before selecting Send.

Create an Outlook draft with an attachment using VBA
Use this method to add a specified file automatically to an Outlook draft for review.
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.

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.




