Check Method Example

This example checks the active document for mail merge errors.

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