Selection.Union Method

Visio Automation Reference

Creates a new shape from the perimeter of selected shapes.

Version Information
 Version Added:  Visio 2.0

Syntax

expression.Union

expression   A variable that represents a Selection object.

Return Value
Nothing

Remarks

Using the Union method is equivalent to clicking Union on the Operations submenu of the Shape menu in Microsoft Office Visio. 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.

See Also