MailAddressFieldName Property

Microsoft Word Visual Basic

expression.MailAddressFieldName

expression    Required. An expression that returns a MailMerge object.

Example

This example merges the document named "FormLetter.doc" with its attached data document and sends the results to the e-mail addresses stored in the Email merge field.

With Documents("FormLetter.doc").MailMerge
    .MailAddressFieldName = "Email"
    .MailSubject = "Amazing offer"
    .Destination = wdSendToEmail
    .Execute
End With