GroupItems Property
Applies To
Shape object, ShapeRange collection object.
Description
Returns a GroupShapes object that represents the individual shapes in the specified group. Use the Item method of the GroupShapes object to return a single shape from the group. Applies to Shape or ShapeRange objects that represent grouped shapes. Read-only.
See Also
Group method, GroupShapes collection object.
Example
This example adds three triangles to myDocument, groups them, sets a color for the entire group, and then changes the color for the second triangle only.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes
.AddShape(msoShapeIsoscelesTriangle, 10, 10, 100, 100). _
Name = "shpOne"
.AddShape(msoShapeIsoscelesTriangle, 150, 10, 100, 100). _
Name = "shpTwo"
.AddShape(msoShapeIsoscelesTriangle, 300, 10, 100, 100). _
Name = "shpThree"
With .Range(Array("shpOne", "shpTwo", "shpThree")).Group
.Fill.PresetTextured msoTextureBlueTissuePaper
.GroupItems(2).Fill.PresetTextured msoTextureGreenMarble
End With
End With