Represents the individual shapes within a grouped shape. Each shape contained within a group of shapes is represented by a Shape
Use the GroupItems
property to return the GroupShapes collection. Use GroupItems(Index), where Index is the number of the individual shape within the grouped shape, to return a single shape from the GroupShapes collection. The following example adds three triangles to the active document, groups them, sets a color for the entire group, and then changes the color for the second triangle only.
Visual Basic for Applications
10, 10, 100, 100).Name = "shpOne"
150, 10, 100, 100).Name = "shpTwo"
300, 10, 100, 100).Name = "shpThree"
With .Range(Array("shpOne", "shpTwo", "shpThree")).Group