Share via


WizardState Property.WizardState Property

Publisher Developer Reference

Returns or sets a Long indicating the current Mail Merge wizard step for a publication. The WizardState property returns a number that equates to the current Mail Merge wizard step; a zero (0) means the Mail Merge wizard is closed. Read/write.

Syntax

expression.WizardState

expression   A variable that represents a WizardState Property object.

Return Value
Long

Example

This example displays the Mail Merge wizard if it is closed.

Visual Basic for Applications
  Sub ShowMergeWizard()
    With ActiveDocument.MailMerge
        If .WizardState = 0 Then
            .ShowWizard
        End If
    End With
End Sub

See Also