Table of contents
TOC
Collapse the table of content
Expand the table of content

Shape.Wizard Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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.

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

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 .

© 2018 Microsoft