Chlaris said:
Dear all,
Is it possible to set macro security to low
programmatically?Thanks.Chlaris
As others have mentioned, you cannot do it from VBA. Save the following text
in a text file named "Security.reg" and double-click on it.or run it as part
of your install script.
Here are the settings for SandBoxMode:
Setting Description
0 Sandbox mode is disabled at all times.
1 Sandbox mode is used for Access applications, but not for
non-Access Applications.
2 Sandbox mode is used for non-Access applications, but not for
Access Applications. (This is the default value.)
3 Sandbox mode is used at all times.
and here's the script I use. (The semi-colons are comments):
REGEDIT4
; This will kill the Access 2003 security warnings
; Note: you need a carriage return after the last line
[[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\11.0\Access\Security]
"Level"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines]
"SandBoxMode"=dword:00000002