LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Force to enable macros


Denys wrote:
Good day everyone,

Is there such code that forces the user to enable the macros in order to
open a file?

In other words, if the user "disable" the macros, then the file cannot be
opened.

Thanks for your time...

Denys


Hi Denys.

No.

But perhaps you could use the Workbook_BeforeClose event handler to
"cripple" your workbook in some fashion (e.g. Protect all the cells or
make the sheets Very Hidden - apart from the one that says "If you
don't enable the macros, you don't get the worksheets!") and restore it
to health with Workbook_Open.

Regards

Steve

 
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
How can force enable macros to be able to open my workbook? kcdonaldson Excel Discussion (Misc queries) 3 December 5th 05 06:16 PM
Force Enable Macros pgjoshi[_2_] Excel Programming 3 March 6th 04 12:33 PM
Force Enable Macros Jake Marx[_2_] Excel Programming 1 October 24th 03 01:24 AM
Force Enable Macros Alan Excel Programming 0 September 24th 03 08:17 PM
Force Enable Macros Ed[_9_] Excel Programming 0 September 24th 03 07:59 PM


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