#1   Report Post  
Posted to microsoft.public.excel.programming
tjh tjh is offline
external usenet poster
 
Posts: 96
Default security

Hello,
In an excel vba macro, is it possible to change the macro security settings
from high to low within the code? Allowing the macro to run when the user
opens the file even if their settings are set to high. Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default security

Not possible. The macro can't run, so it can't change the security
settings.

--
Regards,
Tom Ogilvy


"tjh" wrote in message
...
Hello,
In an excel vba macro, is it possible to change the macro security

settings
from high to low within the code? Allowing the macro to run when the user
opens the file even if their settings are set to high. Thank you



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default security

You can add a sheet that has a big message in the middle of it like "You
must enable macros to use this workbook."
Now hide all your sheets but that one.
In the Workbook_Open Event, Unhide all your other sheets and Hide your
Message sheet.
In the Workbook_Close Event, Hide all your other sheets and Unhide your
Message sheet.
Now if someone tries to open the workbook with macros disabled, all they can
see is the Message sheet.

Mike F
"tjh" wrote in message
...
Hello,
In an excel vba macro, is it possible to change the macro security

settings
from high to low within the code? Allowing the macro to run when the user
opens the file even if their settings are set to high. Thank you



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
Security dwake Excel Discussion (Misc queries) 1 December 16th 09 04:28 PM
Security Steven Sinclair Excel Discussion (Misc queries) 2 March 31st 09 07:47 PM
Security Liz J[_2_] Excel Discussion (Misc queries) 6 August 11th 08 09:52 PM
security kyoshirou Excel Discussion (Misc queries) 5 July 3rd 07 06:27 AM
Security The Rook[_2_] Excel Discussion (Misc queries) 4 May 9th 07 03:12 PM


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