ShapeRange.Group Method
Publisher Developer Reference |
Groups the shapes in the specified shape range. Returns the grouped shapes as a single Shape object.
Syntax
expression.Group
expression A variable that represents a ShapeRange object.
Return Value
Shape
Remarks
The specified range must contain more than one shape, or an error occurs.
Because a group of shapes is treated as a single shape, grouping and ungrouping shapes changes the number of items in the Shapes collection and changes the index numbers of items that come after the affected items in the collection.
Example
This example adds two shapes to the first page of the active publication, groups the two new shapes, sets the fill for the group, rotates the group, and sends the group to the back of the drawing layer.
Visual Basic for Applications |
---|
|
See Also