Enclosures Property

Applies To

Mailer object.

Description

Returns or sets the enclosed files that are attached to the workbook mailer, as an array of strings, with each string indicating the path of a file to attach as an enclosure. Relative paths are allowed; they're assumed to be based on the current folder. Available only in Microsoft Excel for the Macintosh, with the PowerTalk mail system extension installed. Read/write Variant.

See Also

BCCRecipients property, CCRecipients property, Mailer property, Received property, SendDateTime property, Sender property, SendMailer method, Subject property, ToRecipients property.

Example

This example sets up the Mailer object for workbook one and then sends the workbook.

With Workbooks(1)
    .HasMailer = True
    With .Mailer
        .Subject = "Here is the workbook"
        .ToRecipients = Array("Jean")
        .CCRecipients = Array("Adam", "Bernard")
        .BCCRecipients = Array("Chris")
        .Enclosures = Array("TestFile")
    End With
    .SendMailer
End With