Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default close WB after clicking DISABLE MACROS

Hi all ,

Is there a way to close a workbook after the user clicks on the "Disable
Macros" button on the security warning screen , instead of opening the
workbook anyway.

Thanks in advance
Mario



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default close WB after clicking DISABLE MACROS

No because that requires macro code.

An alternative suggestion.

Create a sheet with some text on saying that macros need to be enabled else
the workbook is unusable.
Hide all sheets except this one (in the VBIDE you can very hide them)
Add some workbook_open event code that makes all other sheets visible and
this one not visible (reverse it in the Workbook BeforeClose event and save
it)

If they disable macros, they will just get the warning screen, if they don't
all is well.

--
HTH

Bob Phillips

"Mario M" wrote in message
...
Hi all ,

Is there a way to close a workbook after the user clicks on the "Disable
Macros" button on the security warning screen , instead of opening the
workbook anyway.

Thanks in advance
Mario





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
Adding a Close Workspace option when right-clicking Excel in taskb Handsome Prints Setting up and Configuration of Excel 0 September 4th 09 03:34 AM
Don't have all Excel windows close after clicking X on only one. Adam Excel Discussion (Misc queries) 1 February 9th 06 09:02 PM
Disable Macros --> Close File [email protected] Setting up and Configuration of Excel 3 August 24th 05 10:22 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 04:56 PM.

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

About Us

"It's about Microsoft Excel"