Create an Excel Email Link with a Subject and Workbook Attachment
Question details
Create an Excel 365 email link that includes a cell value in the subject and prepares the workbook as an attachment.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- The user wants to start an email from a workbook with a customized subject and the workbook attached.
- Observed behavior
- The desired result is a new email containing the cell-based subject and the workbook attachment.
Choose the recipient address and identify the cell containing the subject value. If you need to attach the workbook, save it first and make sure your email application is configured.
Create a Mailto Link with a Cell-Based Subject
Use this method to open a new email with the subject filled in, then attach the workbook manually.
Select a cell and enter =HYPERLINK("mailto:recipient@example.com?subject="&ENCODEURL("Your subject "&B6),"Send email"). Replace the address, subject text, and B6 with your own values.
Click the Send email link in the worksheet to open a new message in your configured email application.
In the new message, choose Attach File and select the saved workbook. Review the message before sending it.

Use Excel VBA to Prepare an Outlook Email with the Workbook
Use this method when you want a macro to add the saved workbook as an attachment automatically.
Work with Excel Spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with them in WPS Spreadsheets for an easy transition.

Frequently Asked Questions
Can an Excel mailto hyperlink attach the workbook automatically?
A standard mailto link cannot reliably add an attachment. Attach the saved workbook manually in the email window, or use an automation method such as Outlook VBA.
How do I include a cell value in the email subject?
Use a formula such as =HYPERLINK("mailto:recipient@example.com?subject="&ENCODEURL("Your subject "&B6),"Send email"). Replace B6 with the cell you want to use.
Does the VBA example send the email automatically?
No. The macro uses .Display to open a draft in Outlook so you can review the recipient, subject, and attachment before clicking Send.
Why should I save the workbook before running the macro?
The macro attaches the saved file from ThisWorkbook.FullName. Save the workbook first and save recent changes so the attachment contains the version you intend to send.




