Open in the explorer

Trust access to Visual Basic Project

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft PowerPoint 2016 › PowerPoint Options › Security › Trust Center
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
ppt16.admx
Internal name
ppt16/L_TrustaccesstoVisualBasicProject

Explanation

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

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\powerpoint\security
Value name
accessvbom
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: ppt16/L_TrustaccesstoVisualBasicProject
$k = 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'accessvbom' -Value 1 -Type DWord

Disable

# Disable: ppt16/L_TrustaccesstoVisualBasicProject
$k = 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'accessvbom' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ppt16/L_TrustaccesstoVisualBasicProject
$k = 'HKCU:\software\policies\microsoft\office\16.0\powerpoint\security'
Remove-ItemProperty -Path $k -Name 'accessvbom' -ErrorAction SilentlyContinue

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.