Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Force to enable macros

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Force to enable macros

Denys, have a look here,

http://www.danielklann.com/excel/for...be_enabled.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Denys" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Force to enable macros

Just for clarification, the answer is no.

--
Regards,
Tom Ogilvy


"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

  #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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Force to enable macros

Good morning,

Thanks for your answers. I used to hide my sheets just before closing. But
Scoops, you gave me a good idea... I will make the sheets very hidden instead
of "visible = true". It should help..

Have a good day

Denys

"Scoops" wrote:


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


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
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 07:31 AM.

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"