VBA macro step-by-step

K

keepitcool

use STEP into/out (F8) in debug menu in VBE
or first set some breakpoints with F9, then fire up your procedures and
they will stop on the breakpoints.


If the LOCALS window is visible, you can see all your variables,
or add some watches on variables you'd like to monitor.



keepITcool

< email : keepitcool chello nl (with @ and .) >
< homepage: http://members.chello.nl/keepitcool >
 
L

Louis

It worked! thanks

I didn't really understand how I could watch the state of
my variables as the macro excecutes itself.

I'm running Excel97

Thanks for your help so far.
 
D

Dave Peterson

Ignore this message if you understand it now. (I wasn't sure if you didn't
before or don't currently.)

When you're stepping through your code, you can let the cursor linger over a
variable and you'll see a tooltip pop up with its current value.

You can also rightclick on a variable and select "Add Watch"
Then you can see the watch window by:
View|Watch window
(if you closed it)
 

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