Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Don't open file if no response to enable macros

Hi
If someone opens an Excel file containing macros, I would like the file
to remain closed if they choose not to enable macros. A message like
"This worksheet must be opened with macros enabled. The file will now
close" would be nice.
Can any event capture the "enable macro" message box?

cheers
Paul

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Don't open file if no response to enable macros

Paul,

what you want cannot be done, because the macro warning should protect
against virusses. If it was possible, they would be the first to use
this feature;)

What *is* possible is the following setup:

Have 1 sheet visible containing the text " Enable Macro's". All other
sheets should be set to "very Hidden"

On opening the spreadsseet your open macro should hide the visible
sheet and show the hidden sheet(s). Users can still open your file, but
it is of little use to them unless macro's are enabled.

Another option is to sign your VBA project digitally, this will allow
execution of the VBA code regardless of security settings.

DM Unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Don't open file if no response to enable macros

Please don'r reply- I searched on it in this group.
regards
Paul

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
enable macros question not being asked when opening file Aussie Ells Excel Discussion (Misc queries) 1 June 7th 07 04:05 AM
Force users to enable macros when open a workbook Tan New Users to Excel 2 April 15th 07 05:09 PM
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 AM
How can force enable macros to be able to open my workbook? kcdonaldson Excel Discussion (Misc queries) 3 December 5th 05 06:16 PM
Excel Slow File Open Directory Response Dave P Excel Discussion (Misc queries) 0 September 30th 05 01:37 AM


All times are GMT +1. The time now is 05:23 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"