Select shape programmatically

T

Tomislav

Hello,

How to make specific shape in a drawing selected or deselected by using
Visio VBA ?

Thanks,

Tomislav
 
A

Al Edlund

consider
Selecting and deselecting shapes in a window

To select a shape in a window from a program, use the Select method of a
Window

object and specify the Shape object to select. You can add a shape to a
selection or

remove a shape from a selection without affecting the other selected shapes.
For

example, the following statement adds a shape to those already selected in a
drawing

window:

winobj.select shpobj.visSelect

To select all the shapes on a drawing page, use the Window object's
SelectAll method;

al
 
Top