Policy
Trust access to Visual Basic Project
Microsoft Office 5532.1000
Policy overview
Key metadata and intent for this policy.
This policy setting controls whether automation clients such as Microsoft Visual Studio 2005 Tools for Microsoft Office (VSTO) can access the Visual Basic for Applications project system in the specified applications. VSTO projects require access to the Visual Basic for Applications project system in Excel, PowerPoint, and Word, even though the projects do not use Visual Basic for Applications. Design-time support of controls in both Visual Basic and C# projects depends on the Visual Basic for Applications project system in Word and Excel. If you enable this policy setting, VSTO and other automation clients can access the Visual Basic for Applications project system in the specified applications. Users will not be able to change this behavior through the "Trust access to the VBA project object model" user interface option under the Macro Settings section of the Trust Center. If you disable this policy setting, VSTO does not have programmatic access to VBA projects. In addition, the "Trust access to the VBA project object model" check box is cleared and users cannot change it. Note: Disabling this policy setting prevents VSTO projects from interacting properly with the VBA project system in the selected application. If you do not configure this policy setting, automation clients do not have programmatic access to VBA projects. Users can enable this by selecting the "Trust access to the VBA project object model" in the "Macro Settings" section of the Trust Center. However, doing so allows macros in any documents the user opens to access the core Visual Basic objects, methods, and properties, which represents a potential security hazard.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKCU\software\policies\microsoft\office\16.0\powerpoint\security\accessvbom | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- UserBlock macros from running in Office files from the internetWindows7
- UserDisable all application add-insWindows7
- UserDisable Trust Bar Notification for unsigned application add-ins and block themWindows7
- UserRequire that application add-ins are signed by Trusted PublisherWindows7
- UserSet maximum number of trust records to preserveWindows7
- UserSet maximum number of trusted documentsWindows7
- UserTurn off trusted documentsWindows7
- UserTurn off Trusted Documents on the networkWindows7
- UserVBA Macro Notification SettingsWindows7