Get in DEBUG mode on workbook open

A

Anthony Fok

is there a way to get into the debugger just as i open excel (and enabl
macros)

i am currently trying to debug a file but the error occurs in th
Workbook Open method.

i cant figure out a way to get into the debugger before the erro
happens, is this even possible? thanks
 
T

TommySzalapski

The easiest way I can think of is to rename your workbook_open macro (s
that it won't run on open) open it and the debugger and run the macr
manually (using f8 or the little play button) There may be a les
clumsy solution, but this will work
 
R

reddog9069

as long as you do not have a password on the macros then just open i
and put a breakpoint on the first line of the workbook open method the
when the workbook opens it should take you into debug mode
 

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