Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
|

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbook_Open() Event Bill Martin Excel Discussion (Misc queries) 9 January 13th 06 08:24 PM
Workbook_open Event Bruce Maston Excel Programming 6 April 6th 04 01:19 AM
Workbook_Open Event Squid[_2_] Excel Programming 7 February 8th 04 06:49 PM
WorkBook_Open Event Squid[_3_] Excel Programming 1 February 8th 04 02:45 AM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 06:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"