MailMerge.WizardState Property (Publisher)

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 MailMerge object.

Return Value

Long

Example

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

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