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 that 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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.