title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
MailMerge.Execute method (Word) |
vbawd10.chm153092201 |
|
|
ffce766a-2e2d-9633-e1d8-129a3976cadd |
06/08/2017 |
medium |
Performs the specified mail merge operation.
expression. Execute
( _Pause_
)
expression Required. A variable that represents a 'MailMerge' object.
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. |
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
[!includeSupport and feedback]