How to Configure Excel VBA Macro Settings Through Group Policy
Question details
Administrators need to centrally manage and control Excel VBA macro settings across their organization using 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.
Ensure you have administrative privileges on your domain controller and have downloaded the latest Administrative Template files (ADMX/ADML) for Microsoft 365 Apps.
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.
Download and install the Administrative Template files (ADMX/ADML) for Microsoft 365 Apps for enterprise from the official Microsoft download center.
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.
In the Group Policy Editor, go to User Configuration > Policies > Administrative Templates > Microsoft Excel 2016 > Excel Options > Security > Trust Center.
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.

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. Open WPS Spreadsheets: Launch WPS Office and open your macro-enabled spreadsheet document.
- 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. Open Macro Security: Click the 'Macro Security' icon located within the Developer tab.
- 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.

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.




