Document.MailMerge Property
Word Developer Reference |
Returns a MailMerge object that represents the mail merge functionality for the specified document. Read-only.
Syntax
expression.MailMerge
expression A variable that represents a Document object.
Remarks
The MailMerge object is available regardless of whether the specified document is a mail merge main document. Use the State property to determine the current state of the mail merge operation.
Example
This example executes a mail merge if the active document is a main document with an attached data source.
Visual Basic for Applications |
---|
|
This example merges the main document with records 1 through 4 and sends the merge documents to the printer.
Visual Basic for Applications |
---|
|
See Also