ShapeRange.Group Method
Groups the shapes in the specified range. Returns the grouped shapes as a single Shape object.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Group As Shape
'Usage
Dim instance As ShapeRange
Dim returnValue As Shape
returnValue = instance.Group()
Shape Group()
Return Value
Type: Microsoft.Office.Interop.Excel.Shape
Remarks
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.