EmailMergeEnvelope.To property (Publisher)
Gets or sets the MailMergeDataField object that represents the data-source field (column) that lists the email addresses of recipients of the merged email message. Read/write.
Syntax
expression.To
expression A variable that represents an EmailMergeEnvelope object.
Return value
MailMergeDataField
Remarks
You must make certain that you assign the correct data-source field (the one that represents email addresses) to the To property. Use the following line of code, which gets the value of the Name property of the MailMergeDataField object to which To is assigned, to ensure that you make the correct assignment.
Debug.Print ThisDocument.MailMerge.EmailMergeEnvelope.To.Name
For an example of how to set the To property value, see the EmailMergeEnvelope object.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.