MailMerge.State property (Word)

Returns the current state of a mail merge operation. Read-only WdMailMergeState.

Syntax

expression. State

expression Required. A variable that represents a 'MailMerge' object.

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

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.