View Shapes Window

B

Big Dave

I am using visio with automation and my application has a design mode
and a run mode. When in run mode i would like to turn off the shapes
window, as on the view menu. Then turn it back on when in design mode.
Anyone know if this is possible from VBA.

Thanks
 
A

Al Edlund

in the developers reference for automation (available via help), check
enumerations for visio window types. These are the constants needed to open
and close windows. You can also do it with docmd
vsoApplication.DoCmd(visCmdPanZoom) ' opens the pan zoom window

al
 
B

Big Dave

thanks, but i had looked throught them and couldnt find one that seems
to relate to the shape window, just the search on the shape window.
 
A

Al Edlund

if by shapes you mean Stencils then you want window type 7 or
visDockedStencilBuiltIn.
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