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

MailMerge Object (Publisher)

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

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

Example

Use the 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. 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

Name
CreateShortcut
Execute
ExportRecipientList
OpenDataSource
ShowWizardEx

Properties

Name
Application
DataSource
DocumentUpdating
EmailMergeEnvelope
Parent
SuppressBlankLines
Type
ViewMailMergeFieldCodes
WizardState
© 2018 Microsoft