Compartilhar via


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

Concepts

MailMerge Object Members

MailMerge Object