此策略设置可控制宏是否可以在另一个应用程序以编程方式打开的 2007 Office 应用程序中运行。
如果您启用此策略设置,您可以从用于控制以编程方式打开应用程序时 Excel 2007、PowerPoint 2007 和 Word 2007 中的宏行为的三个选项中选择:
- 默认情况下禁用宏 - 以编程方式打开的应用程序中禁用所有宏。
- 启用宏(默认) - 宏可以在以编程方式打开的应用程序中运行。此选项可强制使用 Excel、PowerPoint 和 Word 中的默认值。
- 使用应用程序宏安全级别 - 宏功能通过设置信任中心的"宏设置"部分的设置来确定。
如果您禁用或不配置此策略设置,使用独立程序以编程方式启动 Microsoft Office Excel 2007、PowerPoint 2007 或 Word 2007 时,任何宏都可以在以编程方式打开的应用程序中运行而不会被阻止。
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Microsoft\Office\Common\Security |
Value Name | AutomationSecurity |
Value Type | REG_DWORD |
Value | 3 |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Microsoft\Office\Common\Security |
Value Name | AutomationSecurity |
Value Type | REG_DWORD |
Value | 2 |
Registry Hive | HKEY_CURRENT_USER |
Registry Path | Software\Policies\Microsoft\Office\Common\Security |
Value Name | AutomationSecurity |
Value Type | REG_DWORD |
Value | 1 |