MailMerge object (Publisher)

Represents the mail merge and catalog merge functionality in Microsoft Publisher.

Remarks

Use the Document.MailMerge property to return the MailMerge object. The MailMerge object is always available regardless of whether the mail merge or catalog merge operation has begun.

Example

The following example merges and prints the main publication with the first three records in the attached data source.

Sub SelectiveMerge() 
 Dim mrgMain As MailMerge 
 Set mrgMain = ActiveDocument.MailMerge 
 With mrgMain.DataSource 
 .FirstRecord = 1 
 .LastRecord = 3 
 End With 
 mrgMain.Execute True 
End Sub

Methods

Properties

See also

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.