VBA & Macro Problems

Create an Excel Email Link with a Predefined Body

Ayan MasoodAyan Masood Nov 25, 2026 869 views

Question details

Create an Excel email link that addresses a message to a selected email address and inserts predefined body text.

Create an Excel Email Link with a Predefined Body
Product
Microsoft Excel and Outlook
Device & OS
not provided
Scenario
A worksheet contains email addresses, and the user wants to compose a message with a saved or predefined body.
Observed behavior
Selecting an address or link should open a new email with the recipient and message text filled in.
Before you start

Check that the email addresses are in a worksheet column and that a default email app is configured to handle mailto links. For the VBA method, use desktop Excel on Windows with classic Outlook configured.

Solution 1Recommended

Create a mailto hyperlink with predefined text

Use a formula when you need a simple link that fills in the recipient, subject, and plain-text body.

1
Enter an email address

Place the recipient's email address in cell A2 of your Excel worksheet.

2
Add the hyperlink formula

Select another cell and enter =HYPERLINK("mailto:"&A2&"?subject=Follow%20up&body=Hello%2C%0AThis%20is%20a%20follow-up.","Compose email"). Replace the subject and body text as needed, using %20 for spaces and %0A for a line break.

3
Open the message

Click the Compose email link and check the recipient, subject, and body in your default email app before sending.

4
Apply it to other rows

Drag the formula cell's fill handle down to create links for the email addresses in the following rows.

Create a mailto hyperlink with predefined text
Mailto limitation: A mailto link supplies plain-text values; it does not retrieve the contents of an existing Outlook draft. Support for the subject and body parameters depends on the email app.
Compose emails from a spreadsheet

Create an email link in WPS Spreadsheets

Use a HYPERLINK formula in WPS Spreadsheets to open a new message with a recipient, subject, and predefined plain-text body in your default email app.

  1. 1. Open your worksheet: Open WPS Spreadsheets and use Open to select your workbook, or create a new sheet and enter an email address in A2.
  2. 2. Insert the formula: Select another cell and enter =HYPERLINK("mailto:"&A2&"?subject=Follow%20up&body=Hello%2C%0AThis%20is%20a%20follow-up.","Compose email").
  3. 3. Test the link: Click Compose email and check that your default email app fills in the recipient, subject, and body.
  4. 4. Copy the link down: Drag the formula cell's fill handle down to create links for additional addresses, then save the workbook.
Create email links for addresses across multiple worksheet rowsOpen and edit Microsoft Excel XLSX workbooksUse familiar spreadsheet formulas and a lightweight interface
microsoft office alternative - wps office

Frequently Asked Questions

Can an Excel mailto link open an existing Outlook draft?

No. A mailto link can pass a recipient, subject, and plain-text body to an email app, but it cannot reliably retrieve an existing Outlook draft. Use Outlook-aware code or an add-in to locate and read the draft.

How do I add a line break to the email body?

In the mailto formula, insert %0A where you want a new line. For example, body=Hello%2C%0AThanks places Thanks on the next line in email apps that support it.

Will the VBA example send the email automatically?

No. The example uses .Display to open the message for review. Select Send in Outlook after checking the recipient and content.

Why doesn't the email body appear when I click the link?

Check that a default email app is configured to handle mailto links and that it supports the body parameter. Also check the formula for encoded characters such as %20 for spaces and %0A for line breaks.