Selection.Subtract method (Visio)

Subtracts the areas that overlap the selected shape.

Syntax

expression. Subtract

expression A variable that represents a Selection object.

Return value

Nothing

Remarks

Calling the Subtract method is equivalent to clicking Subtract in the Microsoft Visio user interface (click Operations in the Shape Design group on the Developer tab). The first selected shape is the one that will have the other selected shapes subtracted from it. The other shapes will be deleted and no shapes are selected when the operation is complete.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.