MailMerge.Execute method (Word)
Performs the specified mail merge operation.
Syntax
expression. Execute
( _Pause_
)
expression Required. A variable that represents a 'MailMerge' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Pause | Optional | Variant | True for Microsoft Word pause and display a troubleshooting dialog box if a mail merge error is found. False to report errors in a new document. |
Example
This example executes a mail merge if the active document is a main document with an attached data source.
Set myMerge = ActiveDocument.MailMerge
If myMerge.State = wdMainAndDataSource Then MyMerge.Execute
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for