Shapes.AddGroupWizard method (Publisher)
Adds a Shape object representing a Design Gallery object to the publication.
Syntax
expression.AddGroupWizard (Wizard, Left, Top, Width, Height, Design)
expression A variable that represents a Shapes object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Wizard | Required | PbWizardGroup | The type of Design Gallery object to add to the publication. Can be one of the PbWizardGroup constants declared in the Microsoft Publisher type library. |
Left | Required | Variant | The position of the Design Gallery object's left edge relative to the left edge of the page, measured in points. |
Top | Required | Variant | The position of the Design Gallery object's top edge relative to the top edge of the page, measured in points. |
Width | Optional | Variant | The width of the new Design Gallery object. |
Height | Optional | Variant | The height of the new Design Gallery object. |
Design | Optional | Long | The design of the object to be added. |
Return value
Shape
Example
This example adds a web table of contents to the active publication.
ActiveDocument.Pages(1).Shapes _
.AddGroupWizard Wizard:=pbWizardGroupTableOfContents, _
Left:=100, Top:=100
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.