Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.MailMerge Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft