Share via


Workbook.SendMail Method (Excel)

Sends the workbook by using the installed mail system.

Syntax

.SendMail(Recipients, Subject, ReturnReceipt)

A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Recipients

필수

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

선택

Variant

Specifies the subject of the message. If this argument is omitted, the document name is used.

ReturnReceipt

선택

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"

참고 항목

개념

Workbook Object

Workbook Object Members