Open in the explorer

VBA Macro Notification Settings

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

Explanation

This policy setting controls how the specified applications warn users when Visual Basic for Applications (VBA) macros are present.

If you enable this policy setting, you can choose from four options for determining how the specified applications will warn the user about macros:

- Disable all with notification: The application displays the Trust Bar for all macros, whether signed or unsigned. This option enforces the default configuration in Office.

- Disable all except digitally signed macros: The application displays the Trust Bar for digitally signed macros, allowing users to enable them or leave them disabled. Any unsigned macros are disabled, and users are not notified.

- Disable all without notification: The application disables all macros, whether signed or unsigned, and does not notify users.

- Enable all macros (not recommended): All macros are enabled, whether signed or unsigned. This option can significantly reduce security by allowing dangerous code to run undetected.

If you disable this policy setting, "Disable all with notification" will be the default setting.

If you do not configure this policy setting, when users open files in the specified applications that contain VBA macros, the applications open the files with the macros disabled and display the Trust Bar with a warning that macros are present and have been disabled. Users can inspect and edit the files if appropriate, but cannot use any disabled functionality until they enable it by clicking "Enable Content" on the Trust Bar. If the user clicks "Enable Content", then the document is added as a trusted document.

Important: If "Disable all except digitally signed macros" is selected, users will not be able to open unsigned Access databases.

Also, note that Microsoft Office stores certificates for trusted publishers in the Internet Explorer trusted publisher store. Earlier versions of Microsoft Office stored trusted publisher certificate information (specifically, the certificate thumbprint) in a special Office trusted publisher store. Microsoft Office still reads trusted publisher certificate information from the Office trusted publisher store, but it does not write information to this store.

Therefore, if you created a list of trusted publishers in a previous version of Microsoft Office and you upgrade to Office, your trusted publisher list will still be recognized. However, any trusted publisher certificates that you add to the list will be stored in the Internet Explorer trusted publisher store.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\ms project\security
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: proj16/L_VBAWarningsPolicy
$k = 'HKCU:\software\policies\microsoft\office\16.0\ms project\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Possible options:
#   Disable all with notification = 2
#   Disable all except digitally signed macros = 3
#   Disable all without notification = 4
#   Enable all macros (not recommended) = 1
Set-ItemProperty -Path $k -Name 'vbawarnings' -Value 2 -Type DWord

Disable

# Disable: proj16/L_VBAWarningsPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": proj16/L_VBAWarningsPolicy
$k = 'HKCU:\software\policies\microsoft\office\16.0\ms project\security'
Remove-ItemProperty -Path $k -Name 'vbawarnings' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
L_EmptyDrop-down listenumvbawarningsREG_DWORD
Default choice (UI): #0
LabelValue
Disable all with notificationREG_DWORD = 2
Disable all except digitally signed macrosREG_DWORD = 3
Disable all without notificationREG_DWORD = 4
Enable all macros (not recommended)REG_DWORD = 1

Application

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

Official templates downloaded on November 12, 2026.