stopping workbook_open event from running

born2bongo

New Member
Joined
Feb 4, 2009
Messages
12
Having nightmares switching between excel 2003/2007. Need to start a 2003 workbook without the workbook_open macro kicking in, so I can see where my errors are coming from.

I used to just open witht the shift key down but this doesn't seem to work in 2007.

Also, maybe I'm asking the wrong questions but I've just spent an hour googling variations of this question, to no avail. Is there a fault with my Excel installation that is stopping the shift key from having an effect?

I'm running on XP.

TIA
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I don't have access to Excel 2007 at the moment so I can't check if holding down Shift works. But you could try temporarily setting your Macro Security to Low or typing:

Application.EnableEvents = False

in the VBE Immediate window and pressing Enter before opening the workbook.
 
Upvote 0
Thanks for the quick response but no luck so far. Why did they have to take something so useful away?
 
Upvote 0
I think Andrew meant setting your macro security to High rather than Low, but disabling events should work in all versions of Excel. Is it definitely a Workbook_Open event not an Auto_Open macro?
 
Upvote 0
I think Andrew meant setting your macro security to High rather than Low, but disabling events should work in all versions of Excel. Is it definitely a Workbook_Open event not an Auto_Open macro?

Oops! :oops: My excuse is I was on the phone while typing.
 
Upvote 0
OK. Disabling events worked the second time I tried it - must have panicked and did something wrong first time.

Thanks v much
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top