ShowWizard Method

       

Displays the Mail Merge Wizard in a document.

expression.ShowWizard(ShowDocumentStep, ShowTemplateStep, ShowDataStep, ShowWriteStep, ShowPreviewStep, ShowMergeStep)

expression   Required. An expression that returns a MailMerge object.

ShowDocumentStep  Optional Boolean. This argument doesn't apply to Microsoft Publisher.

ShowTemplateStep  Optional Boolean. This argument doesn't apply to Publisher.

ShowDataStep  Optional Boolean. True displays the "Select recipients" step. False removes the step.

ShowWriteStep  Optional Boolean. True displays the "Create the publication" step. False removes the step.

ShowPreviewStep  Optional Boolean. True displays the "Preview the publications" step. False removes the step.

ShowMergeStep  Optional Boolean. True displays the "Complete the merge" step. False removes the step.

Example

This example checks if the Mail Merge Wizard is closed, and if it is, displays it.

Sub ShowMergeWizard()
    With ActiveDocument.MailMerge
        If .WizardState = 0 Then
            .ShowWizard
        End If
    End With
End Sub