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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top