Sub Test() Dim s As Shape, g As Shape Set s = ActiveShape If s Is Nothing Then MsgBox "Please select an object", vbCritical Exit Sub End If Set g = s.ParentGroup If g Is Nothing Then MsgBox "Please select an object within a group", vbCritical Exit Sub End If ActiveDocument.PreserveSelection = False g.CreateSelection g.Ungroup s.Selected = False ActiveSelection.Group s.CreateSelectionEnd Sub