Selection.Union Method (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Creates a new shape from the perimeter of selected shapes.

expression .Union

expression A variable that represents a Selection object.

Return Value


Calling the Union method is equivalent to clicking Union in the Microsoft Visio user interface (click Operations in the Shape Design group on the Developer tab). The produced shape will be the topmost shape in its containing shape and will inherit the text and formatting of the first selected shape.

When the operation is complete, the original shapes are deleted and no shapes are selected.