How to put a module in debug

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Help! I'm new to VB and can't figure out how to put a module into debug mode.
Can anyone point me in the right direction? Thank you
 
Help! I'm new to VB and can't figure out how to put a module into debug mode.
Can anyone point me in the right direction? Thank you

The simplest way is to set a "breakpoint" - open the module in the VBA
editor and mouseclick in the grey bar on the left of the code editor
window, next to the executable line of code where you want to set the
breakpoint. When you call the code, execution will stop at that point.
You can then use the various options in the Debug menu to singlestep
through the code, "step out" of a subroutine that you know to be
working correctly, "run to cursor" to run through a series of lines,
etc.

John W. Vinson[MVP]
 
Thank you, I couldn't find that anywhere in the help text. Appreciate 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

Back
Top