Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.3 KB

Excel.Workbook.SendMail.md

File metadata and controls

44 lines (28 loc) · 1.3 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.SendMail method (Excel)
vbaxl10.chm199149
vbaxl10.chm199149
Excel.Workbook.SendMail
581d197c-0748-2225-2986-64aa368aab39
05/29/2019
medium

Workbook.SendMail method (Excel)

Sends the workbook by using the installed mail system.

Syntax

expression.SendMail (Recipients, Subject, ReturnReceipt)

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data type Description
Recipients Required Variant Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients.
Subject Optional Variant Specifies the subject of the message. If this argument is omitted, the document name is used.
ReturnReceipt Optional Variant True to request a return receipt. False to not request a return receipt. The default value is False.

Example

This example sends the active workbook to a single recipient.

ActiveWorkbook.SendMail recipients:="Jean Selva"

[!includeSupport and feedback]