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

Is there a way to write some code to make it so that if a user opens a
workbook and chooses to disable macros, the workbook will not open and give
the user a message saying that this workbook cannot be opened without
enabling macros? The reason I am doing this is to make sure that when a
user first opens the workbook they logon and that logon will run a piece of
code to delete the sheets in the workbook that are not meant for them. But
if they disable macros, they will be able to by pass the logon code and
could see everything in the workbook.

Thanks in advance for your time!!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default enable / disable macros

Hi

Not really. And it's the other way around: Everything should be invisible and useless when
closed, and macros enabled should display selected things.

But beware anyway; nothing is really safe in an excel file. If something is not intended
to be seen, do not include it in the file, no matter how good you believe it's hidden.
It's not.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Tiffany" wrote in message
...
Is there a way to write some code to make it so that if a user opens a
workbook and chooses to disable macros, the workbook will not open and give
the user a message saying that this workbook cannot be opened without
enabling macros? The reason I am doing this is to make sure that when a
user first opens the workbook they logon and that logon will run a piece of
code to delete the sheets in the workbook that are not meant for them. But
if they disable macros, they will be able to by pass the logon code and
could see everything in the workbook.

Thanks in advance for your time!!




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/Disable Macros Pop-Up juamig Excel Discussion (Misc queries) 1 April 9th 10 06:29 PM
Enable/Disable macros Adam Excel Discussion (Misc queries) 2 March 11th 05 10:29 AM
Enable/Disable Macros Ben Schaum Excel Discussion (Misc queries) 1 January 21st 05 03:42 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
Enable/Disable Macros Joseph[_6_] Excel Programming 3 August 23rd 03 02:54 PM


All times are GMT +1. The time now is 02:20 AM.

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"