MailMerge Property.MailMerge Property

Publisher Developer ReferencePublisher Developer Reference

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

Syntax

expression.MailMerge

expression   A variable that represents a MailMerge Property object.

Return Value
MailMerge

Example

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

Visual Basic for Applications
  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.

Visual Basic for Applications
  Sub ExecuteMergeField()
    ActiveDocument.MailMerge.DataSource.OpenRecipientsDialog
End Sub

See Also