Break/disable a macro when opening a workbook

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

Guest

Hi
I have got a Workbook which runs code in the open event, but the problem is that something in the code crashes Excel. Is it possible to open a workbook in "break mode" so I am able to debug the code in the open event?
Regards
/Niklas
 
Hi Niklas

Open a new excel worksheet then select tools, macros, security and increase
the security level. Next time you open the problem workbook you will be
prompted to run macros or not! (Excel 2000)
For Excel 97 I cant remember exactly but I think you tick a box on the
general tab found via tools, options.

HTH

Kenny
Niklas said:
Hi
I have got a Workbook which runs code in the open event, but the problem
is that something in the code crashes Excel. Is it possible to open a
workbook in "break mode" so I am able to debug the code in the open event?
 
Hold down the SHIFT key when opening the file.

Gord Dibben Excel MVP
 
Hello Gord

I thought "that looks a useful tip" - tried it, it does not work!
I tried by holding shift down and double clicking on the file icon and even
right clicking and selecting open - am I missing something?

Kenny

Gord Dibben said:
Hold down the SHIFT key when opening the file.

Gord Dibben Excel MVP
is that something in the code crashes Excel. Is it possible to open a
workbook in "break mode" so I am able to debug the code in the open event?
 

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