Document.MailMerge property (Publisher)

Returns a MailMerge object that represents the mail merge functionality for the specified publication.

Syntax

expression.MailMerge

expression A variable that represents a Document object.

Return value

MailMerge

Example

This example displays the information from the current record in the data source.

Sub ViewMergeData() 
 ActiveDocument.MailMerge.ViewMailMergeFieldCodes = False 
End Sub

This example displays the Mail Merge Recipients dialog box, which contains the records from the data source.

Sub ExecuteMergeField() 
 ActiveDocument.MailMerge.DataSource.OpenRecipientsDialog 
End Sub

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.