Check Method

Microsoft Word Visual Basic

Check Method

       

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

expression.Check

expression   Required. An expression that returns a MailMerge object.

Example

This example checks the active document for mail merge errors.

Dim intState As Integer

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