Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.09 KB

Word.MailMerge.Execute.md

File metadata and controls

50 lines (29 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
MailMerge.Execute method (Word)
vbawd10.chm153092201
vbawd10.chm153092201
Word.MailMerge.Execute
ffce766a-2e2d-9633-e1d8-129a3976cadd
06/08/2017
medium

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

MailMerge Object

[!includeSupport and feedback]