Show AllShow All

State Property

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

expression.State

expression    Required. An expression that returns 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
		
©2003 Microsoft Corporation. All rights reserved.