LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 7
Default How to test Excel 2003 & 2007 macro security level

I want to test Excel's macro security level before loading a worksheet with
macros.

What's the "best" way to do this?

In 2003, I believe I can test the Registry
HKEY_CURRENT_USER\Software\Microsoft\Office\9\Exce l\Security\Level

In 2007, it appears from my testing that the same test would be on
HKEY_CURRENT_USER\Software\Microsoft\Office\12\Exc el\Security\VBAWarnings

I'd have preferred to use the Application.AutomationSecurity property rather
than the registry, but testing it under 2007 (Vista) it doesn't seem to
change when I change the security level in Excel's UI.

I'm quite surprised that apparently a non-Administrative Vista user can
simply change the VBAWarnings registry variable to enable macros. Seems like
a weak link in the security model.

Anyone have any suggestions?

 
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 I change the Macro Security level in Excel 2003 viewer? Kelvin[_2_] Setting up and Configuration of Excel 4 March 2nd 09 03:40 PM
How can I change the Macro Security level in Excel 2003 viewer? Kelvin[_2_] New Users to Excel 4 March 2nd 09 03:40 PM
Excel 2003 sticks to the low macro security level Dima[_2_] Excel Discussion (Misc queries) 14 April 29th 08 07:45 PM
Test For Macro Security Settings Level Tony White[_2_] Excel Programming 3 July 12th 05 03:14 AM


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