Hello
According to the TechNet article
http://technet2.microsoft.com/Office/en-us/library/03d787aa-598d-40a9-87ec-3
1a8ea80e0371033.mspx?mfr=true, Secion: VBA macro settings, there are four
main types of security setting for macros:
o Settings for changing the default behavior of macros.
o Settings for changing VBA.
o Settings for changing macro behavior in applications that are started
programmatically through Automation.
o Settings for preventing virus-scanning programs from scanning encrypted
macros.
The macro setting you mentioned in the beginning of the post belongs to the
first type "Settings for changing the default behavior of macros". It
corresponds to the VBAWarning registry and can be configured by uses
because it is a user level setting: HKEY_CURRENT_USER. And as far as I
know, the only way to change this setting is through the registry.
Application.AutomationSecurity, the application-specific automation
security settings, belong to the third type: "Settings for changing macro
behavior in applications that are started programmatically through
Automation". According to the section "Programming-related security issues"
in
http://office.microsoft.com/en-us/ork2003/HA011403181033.aspx, the
Application.AutomationSecurity allows programmers a means of controlling
how security is handled when a macro call another macro or external
program. It has three possible values: msoAutomationSecurityLow,
msoAutomationSecurityByUI, msoAutomationSecurityForceDisable. Therefore,
Application.AutomationSecurity is different from the macro security level
you mentioned in the post. The corresponding registry for
Application.AutomationSecurity is
HKCU\Software\Microsoft\Office\Common\Security\AutomationSecurity
This is a DWORD key and it can have the following values:
3 = msoAutomationSecurityForceDisable, disable macros by default.
2 = msoAutomationSecurityByUI use the security value that is currently
set in the Trust Center UI for each of the applications.
1 = msoAutomationSecurityLow , current default for most apps, macros in
enabled.
For other information about the AutomationSecurity property, please refer
to
The AutomationSecurity property behavior has changed in Office 2003
http://support.microsoft.com/kb/825939
Please let me know if you have any other concerns, or need anything else.
Sincerely,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document:
http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.