Shape.Wizard Property

Publisher Developer Reference

Returns a Wizard object representing the publication design associated with the specified publication or the wizard associated with the specified Design Gallery object.

Syntax

expression.Wizard

expression   A variable that represents a Shape object.

Remarks

When accessing the Wizard property from the Document or Page object, if the specified publication is not associated with any publication design, an error occurs. When accessing the Wizard property from the Shape or ShapeRange object, if the specified object is not a Design Gallery object, an error occurs.

Example
The following example reports on the publication design associated with the active publication, displaying its name and current settings.

Visual Basic for Applications
  Dim wizTemp As Wizard
Dim wizproTemp As WizardProperty
Dim wizproAll As WizardProperties

Set wizTemp = ActiveDocument.Wizard

With wizTemp Set wizproAll = .Properties Debug.Print "Publication design associated with " _ & "current publication: " _ & .Name For Each wizproTemp In wizproAll With wizproTemp Debug.Print " Setting: " _ & .Name & " = " & .CurrentValueId End With Next wizproTemp End With

Aa437280.vs_note(en-us,office.12).gif  Note
Depending on the language version of Publisher that you are using, you may receive an error when using the above code. If this occurs, you will need to build in error handlers to circumvent the errors. For more information, see Wizard object .

See Also