Enclosures Property

Applies To

Mailer Object.

Description

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

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