VBA Command to Deselect a Shape

M

MikeM

I've written a VBA program that drops shapes (from a stencil I created) on a
page, but at the end of the exercise the last shape is selected (it has a
dotted line surrounding it). Is there a VBA command that will deselet this
shape (or select the page on which it sits?

Mike
 
P

Paul Herber

I've written a VBA program that drops shapes (from a stencil I created) on a
page, but at the end of the exercise the last shape is selected (it has a
dotted line surrounding it). Is there a VBA command that will deselet this
shape (or select the page on which it sits?

ActiveWindow DeselectAll
 
C

Chris Roth [MVP]

FYI there's another method too, which is slightly counter-intuitive:

Window.Select( shp, Visio.visSelectArgs,visDeselect )

May come in handy some other day : )

--
Hope this helps,

Chris Roth
Visio MVP

More Visio shapes, articles, development info and pure diagramming fun at:
www.wanderkind.com/visio
 

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