How to close the shape window using vba

Started by chathavardhan, August 29, 2012, 07:18:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chathavardhan

Hello all,

How to close the shape window in visio using vba?

Thanks in advance.

Jumpy

Is shape window the window where all the open stencils are listed?

chathavardhan

Let me explain you, I am duplicating multiple pages using vba while running the program visis automatically opens the stencil wilndow, for example if i duplicate 10 pages it opens 10 stencil window and this make the process slow i want to close that stencil window.

Thank you

AndyW

Like this

Call Application.ActiveWindow.Windows.ItemFromID(visWinIDShapeSearch).Close
Live life with an open mind

chathavardhan

I tried but nothing happens the program runs successfully without any error and the stencil window is still opened and not getting closed.


Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

chathavardhan

Thank you Paul,

I already tried that but nothing worked I am not sure where the problem is.

AndyW

Live life with an open mind

aledlund

"Let me explain you, I am duplicating multiple pages using vba while running the program visis automatically opens the stencil wilndow", are all of the pages that are being duplicated from the same source document? The reason for the question is that if they are from different documents it may be the opened workspace that is bringing forward the stencil.
al