ShapeRange.Group (PowerPoint)

Groups the shapes in the specified range. Returns the grouped shapes as a single Shape object.

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.


Dim shpGroup As Shape
Set shpGroup = ActivePresentation.Slides(1).Shapes(1).Ungroup.Group()