Share via


ShapeRange.Ungroup Method

Word Developer Reference

Ungroups any grouped shapes in the specified range of shapes, disassembles pictures and OLE objects within the specified shape or range of shapes, and returns the ungrouped shapes as a single ShapeRange object.

Syntax

expression.Ungroup

expression   Required. A variable that represents a ShapeRange object.

Return Value
ShapeRange

Remarks

Because a group of shapes is treated as a single object, grouping and ungrouping shapes changes the number of items in the Shapes collection and changes the index numbers of items that come after the ungrouped shapes in the collection.

See Also