ShowWizard Method

Microsoft Publisher Visual Basic

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

expression    Required. An expression that returns a MailMerge object.

ShowDocumentStep   Optional Boolean. True (default) displays the "Select a merge type" step. False removes the step.

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

ShowDataStep   Optional Boolean. True (default) displays the "Select data source" step. False removes the step.

ShowWriteStep   Optional Boolean. True (default) displays the "Create your publication" step. False removes the step.

ShowPreviewStep   Optional Boolean. True (default) displays the "Preview your publication" step. False removes the step.

ShowMergeStep   Optional Boolean. True (default) 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