Application.InhibitSelectChange property (Visio)

Determines whether shapes added to the drawing page by Automation are selected. Read/write.

Syntax

expression.InhibitSelectChange

expression A variable that represents an Application object.

Return value

Boolean

Remarks

Use the InhibitSelectChange property to control shape selection and increase performance when dropping a series of shapes in the drawing window programmatically. When the InhibitSelectChange property is True, Microsoft Visio does not select any shapes after they are dropped. Your solution, however, can select shapes.

Additionally, Visio attempts to preserve currently selected shapes whenever possible, unless shapes are deselected by the solution.

If a program neglects to turn the InhibitSelectChange property off (False) after turning it on, the Visio instance turns it back off when the user performs an operation.

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.