Function Problems

Create an Excel Email Link with a Subject and Workbook Attachment

Steve KSteve K Dec 2, 2026 868 views

Question details

Create an Excel 365 email link that includes a cell value in the subject and prepares the workbook as an attachment.

Create an Excel Email Link with a Subject and Workbook 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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the hyperlink formula

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.

2
Open the email

Click the Send email link in the worksheet to open a new message in your configured email application.

3
Attach the workbook

In the new message, choose Attach File and select the saved workbook. Review the message before sending it.

Create a Mailto Link with a Cell-Based Subject
Attachment limitation: A standard mailto link cannot reliably attach the workbook automatically. Use Outlook VBA or an email automation tool if the attachment must be added for you.
Free Microsoft Office alternative

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.

Work with spreadsheet hyperlinks and cell-based contentOpen and edit Microsoft Excel formats, including XLSX and XLSUse a familiar interface for everyday spreadsheet tasksMove between compatible Office files with ease
microsoft office alternative - wps office

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.