Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Test For Macro Security Settings Level

Hello All
I distribute a report in my company and I use code to fill drop-down boxes
and change between sheets. Since I use a pivot table to fill the drop-down
boxes and call on PivotCache, I test in the workbook_open even to see what
version of excel is running. I am able to successfully allow 2000 and higher
users to open the book and close the workbook for 97 and earlier however some
users have their security settings set to high and they are able to open the
workbook by the code to fill the drop-down boxes has not run.

Is there a way to test what the security level is? I want to return a msgbox
which tells the user to change their security settings to Medium as I do with
the 97 users (I tell them to upgrade to 2000)

Thank for your help!
--
Anthony White

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Test For Macro Security Settings Level

"Tony White" wrote in message
...

Hello All
I distribute a report in my company and I use code to fill drop-down
boxes and change between sheets. Since I use a pivot table to fill
the drop-down boxes and call on PivotCache, I test in the
workbook_open even to see what version of excel is running. I am
able to successfully allow 2000 and higher users to open the book
and close the workbook for 97 and earlier however some users have
their security settings set to high and they are able to open the
workbook by the code to fill the drop-down boxes has not run.

Is there a way to test what the security level is? I want to return
a msgbox which tells the user to change their security settings to
Medium as I do with the 97 users (I tell them to upgrade to 2000)

Thank for your help!
--
Anthony White


Hi Anthony,

Since they have disabled macros you cannot have anything run
automatically to check.

My response in that situation would be to ensure that when you
distribute the workbook, the relevant sheets are 'very hidden' and
only an instruction sheet is visible saying that the workbook required
macros to be enabled.

In the Workbook_Open event code, just hide that sheet, and unhide the
others.

HTH,

Alan.







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Test For Macro Security Settings Level

OK. That sounds like a good plan. Hopefully they follow directions instead of
unhiding the hidden sheets.

If anyone knows a way to prevent them from unhiding the sheets, I'd like to
know as some of these folks don't read or follow directions :)

Thanks Alan!

"Alan" wrote:

"Tony White" wrote in message
...

Hello All
I distribute a report in my company and I use code to fill drop-down
boxes and change between sheets. Since I use a pivot table to fill
the drop-down boxes and call on PivotCache, I test in the
workbook_open even to see what version of excel is running. I am
able to successfully allow 2000 and higher users to open the book
and close the workbook for 97 and earlier however some users have
their security settings set to high and they are able to open the
workbook by the code to fill the drop-down boxes has not run.

Is there a way to test what the security level is? I want to return
a msgbox which tells the user to change their security settings to
Medium as I do with the 97 users (I tell them to upgrade to 2000)

Thank for your help!
--
Anthony White


Hi Anthony,

Since they have disabled macros you cannot have anything run
automatically to check.

My response in that situation would be to ensure that when you
distribute the workbook, the relevant sheets are 'very hidden' and
only an instruction sheet is visible saying that the workbook required
macros to be enabled.

In the Workbook_Open event code, just hide that sheet, and unhide the
others.

HTH,

Alan.








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
Not able to KEEP Macro Security Level At Minimum Carl Excel Discussion (Misc queries) 2 March 5th 06 08:17 AM
Detecting Macro Security Level Ed Ferrero[_5_] Excel Programming 0 June 15th 04 01:22 PM
Detecting Macro Security Level arkimediz Excel Programming 0 June 15th 04 11:47 AM
Macro to change security level Michael Miazga[_2_] Excel Programming 2 July 21st 03 08:39 PM


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