VBA & Macro Problems

How to Configure Excel VBA Macro Settings Through Group Policy

Jason MillerJason Miller Oct 28, 2026 869 views

Question details

Administrators need to centrally manage and control Excel VBA macro settings across their organization using Group Policy.

Configure Excel VBA Macro Settings Through Group Policy
Product
Microsoft Excel
Device & OS
Windows
Scenario
An IT administrator wants to deploy standard macro security settings to Microsoft 365 Apps across an enterprise environment.
Observed behavior
The goal is to enforce specific VBA macro execution rules, such as blocking macros originating from the internet, across all user workstations.
Before you start

Ensure you have administrative privileges on your domain controller and have downloaded the latest Administrative Template files (ADMX/ADML) for Microsoft 365 Apps.

Solution 1Recommended

Configure Macro Settings via Group Policy Editor

Use the Group Policy Management Console to deploy macro security settings to all Excel users in your organization.

Group Policy provides centralized management and configuration of operating systems, applications, and users' settings in an Active Directory environment. By applying specific Office templates, you can restrict or allow macro executions globally.

1
Install Administrative Templates

Download and install the Administrative Template files (ADMX/ADML) for Microsoft 365 Apps for enterprise from the official Microsoft download center.

2
Open Group Policy Management

Launch the Group Policy Management Console (GPMC) and create a new Group Policy Object (GPO) or edit an existing one that applies to your target users.

3
Navigate to the Trust Center

In the Group Policy Editor, go to User Configuration > Policies > Administrative Templates > Microsoft Excel 2016 > Excel Options > Security > Trust Center.

4
Configure the Macro Policy

Locate the macro notification and execution policies. Double-click the policy, set it to 'Enabled', and configure the desired security level, such as blocking macros originating from the internet.

Configure Macro Settings via Group Policy Editor
Macro Security Guidance: Refer to Microsoft's official security guidance when blocking macros from the internet to prevent the disruption of legitimate business workflows and trusted network locations.

Easily Manage Macro Security Settings with WPS Spreadsheets

If you do not want to deal with complex Group Policy environments, WPS Office provides an intuitive and accessible interface to manage macro security settings on a per-device basis.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open your macro-enabled spreadsheet document.
  2. 2. Access Developer Tools: Click on the 'Developer' tab in the top ribbon menu. If it is hidden, enable it by customizing your ribbon in the settings.
  3. 3. Open Macro Security: Click the 'Macro Security' icon located within the Developer tab.
  4. 4. Adjust Security Level: Select your preferred security level (such as Low, Medium, or High) to control how macros are executed, then click 'OK' to save your settings.
Fully compatible with Microsoft Excel macro-enabled formats (.xlsm, .xls).Built-in visual macro security center to safely handle spreadsheets without complex administrative tools.Lightweight installation and a free, full-featured alternative to Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Where can I download the Administrative Templates for Microsoft 365 Apps?

You can download the latest ADMX/ADML template files directly from the Microsoft Download Center. Search for 'Administrative Template files (ADMX/ADML) for Microsoft 365 Apps for enterprise'.

Do these Group Policy settings apply to Mac users?

No, Group Policy settings are specific to Windows environments. For Mac users, administrators must use standard macOS configuration profiles (MDM) or plist files to manage Office preferences.

How do I specifically block Excel macros downloaded from the internet?

In the Group Policy Editor, navigate to User Configuration > Policies > Administrative Templates > Microsoft Excel 2016 > Excel Options > Security > Trust Center, and enable the policy named 'Block macros from running in Office files from the Internet'.

Will configuring macro policies affect existing trusted documents?

Generally, files stored in designated Trusted Locations or those digitally signed by a Trusted Publisher will still execute macros, even if stricter macro settings are enforced globally. However, this depends on how strictly your specific GPO policies are configured.