Share via


MailMerge.Check Method

Word Developer Reference

Simulates the mail merge operation, pausing to report each error as it occurs.

Syntax

expression.Check

expression   Required. A variable that represents a MailMerge object.

Example

This example checks the active document for mail merge errors.

Visual Basic for Applications
  Dim intState As Integer

intState = ActiveDocument.MailMerge.State If intState = wdMainAndDataSource Or _ intState = wdMainAndSourceAndHeader Then ActiveDocument.MailMerge.Check End If

See Also