ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   suppress Workbook_Open event (https://www.excelbanter.com/excel-programming/417111-suppress-workbook_open-event.html)

pawter

suppress Workbook_Open event
 
I'm using XL2003 Pro and wish to achieve the above when manually
opening a workbook. All my reference-books (& I think I can recollect
having used this a couple years ago) say it can be done by holding
down the Shift key. But no such luck ... any ideas anyone?

thanks in advance,
Tom


joel

suppress Workbook_Open event
 
There are four ways I know of stopping the macro from running

1) Open excel in safe mode. From the start button press Run and enter
"Excel /safe".

2) Set the security level to Medium and when the work book opens select
Disable Macros.

3) Add an input box to the Startup Routine asking if you want to run the
Startup routine. then add an IF statement to run routine depending on the
response.

4) Change the name of the Workbook_open event (AWorkbook_open) and save
book. Then re-open.

"pawter" wrote:

I'm using XL2003 Pro and wish to achieve the above when manually
opening a workbook. All my reference-books (& I think I can recollect
having used this a couple years ago) say it can be done by holding
down the Shift key. But no such luck ... any ideas anyone?

thanks in advance,
Tom



Jim Rech

suppress Workbook_Open event
 
The Shift key always works for me. You're holding Shift down when you click
"Open" right?

Another way is to turn events off before opening the workbook:

Run a macro that includes this line: Application.EnableEvents = False

This suppresses the Workbooks_Open event (and any others) but not sub
Auto_Open.

--
Jim
"pawter" wrote in message
...
| I'm using XL2003 Pro and wish to achieve the above when manually
| opening a workbook. All my reference-books (& I think I can recollect
| having used this a couple years ago) say it can be done by holding
| down the Shift key. But no such luck ... any ideas anyone?
|
| thanks in advance,
| Tom
|



All times are GMT +1. The time now is 10:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com