How to Fix Word Blocking Macros in an Embedded Excel File
Question details
The user is experiencing an issue where Microsoft Word blocks VBA macros from running inside an embedded Excel workbook.
- Product
- Microsoft Word, Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to execute VBA macros from an Excel workbook that has been embedded into a Microsoft Word document.
- Observed behavior
- Macros are actively blocked by recent Microsoft Office security changes affecting embedded content, even when files are stored locally and macro settings are theoretically enabled.
Ensure you are using the latest version of Microsoft Office, and verify that your macro settings in the Trust Center are explicitly set to allow execution for testing purposes.
Unblock Files and Configure Trusted Locations
Resolve macro blocking by ensuring the source Excel file and the Word document are trusted and explicitly unblocked in Windows file properties.
Recent Microsoft Office security updates apply the 'Mark of the Web' (MOTW) to files downloaded from external sources. This feature actively blocks macros in embedded files unless they are saved in a Trusted Location or manually unblocked.
Right-click the source Excel (.xlsm) and Word files in Windows File Explorer and select 'Properties'. In the 'General' tab, look for a 'Security' section at the bottom. If you see an 'Unblock' checkbox, check it and click 'Apply'.
Open Microsoft Word and navigate to 'File' > 'Options' > 'Trust Center', then click the 'Trust Center Settings' button.
Select 'Trusted Locations' from the left menu. Click 'Add new location', browse to the local folder containing your files, check 'Subfolders of this location are also trusted', and click 'OK'.
Provide Sanitized Files to Microsoft Support
If local security settings and unblocking do not resolve the issue, the files may require deep investigation by the Microsoft Support team.
Experience Hassle-Free Document Management with WPS Office
If strict Microsoft Office macro security updates are disrupting your embedded workflow, consider trying WPS Office. It provides a lightweight, highly compatible environment for your Word and Excel needs without the convoluted setup process.
- 1. Install WPS Office: Download and install WPS Office free of charge on your device.
- 2. Open Your Files: Launch WPS Writer or WPS Spreadsheet and simply click 'Open' to select your existing macro-enabled Word or Excel files.
- 3. Resume Work Seamlessly: Continue editing your embedded documents and spreadsheets with perfect layout retention and formatting support.

Frequently Asked Questions
Why does Microsoft Office block macros in files stored locally?
Recent Office updates use the 'Mark of the Web' (MOTW) feature to identify files originally downloaded from the internet or received via email. Even if moved to a local drive, the file retains this mark and Office automatically blocks its macros for security unless explicitly unblocked.
How do I add a Trusted Location in Microsoft Word?
Go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. Click 'Add new location', browse to the specific folder on your drive, and check the box that allows subfolders to be trusted if necessary.
What is a macro-enabled Excel file?
A macro-enabled Excel file is a workbook saved with the .xlsm extension that contains Visual Basic for Applications (VBA) code. This code automates repetitive tasks but requires specialized security permissions to run.




