Step Through Code Problem

T

tbl

When I try to step through code (behind form) after setting
a breakpoint, a dialog titled "Macros" comes up wanting a
macro name.

I'm new to debugging and am totally baffled here.
 
D

Dirk Goldgar

tbl said:
When I try to step through code (behind form) after setting
a breakpoint, a dialog titled "Macros" comes up wanting a
macro name.

I'm new to debugging and am totally baffled here.

If your code is in an event procedure, or in a function that requires
arguments, you can't just step into it. The form has to be open, not in
design view, and the event procedure has to either be triggered by its
event, or else explicitly called (maybe from the Immediate Window, but
even then the procedure has to be public, and accessed via a reference
to the instance of the form).

Short answer: set your breakpoint, then cause the event to fire.
 

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