How to get Variables to display in "Locals Window" (VBA)?

D

Dennis

Using Visio 2003

In Excel, if I place the Cursor over variables in VBA code (in the "Locals
Window") which has been "run" to a stop point, the value of the variable
displays.

What do I need to activate in Visio to get the comparable variable display?

Dennis
 
D

Dennis

Thanks for your time and knowledge John.

It is not the "Locals Window" about which I am concerned but the variables
reflected in the Locals Window.

In the Locals Window, after one Executes VBA code to the "F9" stop or break
point, Visio does not show the values of variables initiated to that point,
as in Excel or Word when one places the cursor on the variable name in the
code.

My question, is whether there is something obvious that I am missing? Is
there a "flag" I need to set?

Dennis
 
J

John Marshall, MVP

Excel and Visio behave the same (it's the same VBA engine). While the VBA
code is running, the Locals Window shows the variables in use. Once you
execute the last statement the variables are released and the window is
empty.

F9 will toggle the breakpoint on or off (The same can be done by double
clicking the line of code)

Try F8. It will run one line of code at a time. or Ctrl-F8 (or F5) to run to
the breakpoint

I tend to put a breakpoint on the end statement to catch it before the code
ends (and clears the variables).

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 

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