A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The files was copied from a WIndows 10 PC to a new Windows 11 PC.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an excel spreadsheet that the Macros are blocked, I can't seem to get them released to use them.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The files was copied from a WIndows 10 PC to a new Windows 11 PC.
Dear @Greg at Reliance,
Thank you for posting your question in the Microsoft Q&A forum.
I understand how inconvenient it can be when you open an Excel workbook and the macros are blocked, preventing the file from working as intended.
This usually happens because Excel blocks macros in files that may not be safe. When a macro‑enabled workbook is downloaded from email, the web, or certain network locations, Windows adds a “Mark of the Web.” Excel sees this mark and treats the file as untrusted, so macros are disabled until the file or its folder is trusted.
Microsoft introduced this behavior to prevent attacks, since harmful VBA macros are often used to spread malware. The block appears anytime a file has the Mark of the Web or comes from a location that hasn’t been marked as trusted.
To help me better understand the situation and assist you effectively, could you please share a few details such as:
1/ Can you tell me where this Excel file originally came from?
Example: You may have received the file from a colleague by email, or downloaded it from a website, Teams, or SharePoint, etc.
2/ Was the file created by you or was it sent to you by someone else?
3/ Are you seeing a yellow security warning bar at the top of Excel when you open it?
4/ Is the file stored on your local computer a shared network drive OneDrive SharePoint or another cloud service?
This will help us better understand the context and provide more targeted support. Any additional information will help us better understand and support you.
Below are several ways to unblock your file depending on how you received or stored it:
Option 1: Remove the Mark of the Web tag from the file
Open File Explorer, find the file you need to enable macros.
Right-click on it and select Properties.
On the General tab, check the "Unlock" box under the "Security" option.
If the "Unlock" checkbox isn't available, you can use PowerShell to unlock your file's macro (if your device has permission to use PowerShell):
In the search bar, type PowerShell and select "Run as administrator".
Then, use this script to unlock your file:
Unblock-File -Path "C:\Path\YourFile.docx"
Option 2: Add the file location as a trusted location
Open Excel and go to File > Options > Trust Center > Trust Center Settings.
Select Trusted Locations in the left bane > Add new location > Browse and navigate to the folder where you keep the files need to enable macro.
Press OK to close all the dialog boxes then try opening your macro-enabled excel file again.
Option 3: Enable macros in Excel
Open the Excel file that needs macro enabling.
If you see a yellow warning bar at the top with the message "SECURITY WARNING: Macros have been disabled", click Enable Content to enable macro for the file.
You can also adjust the trust center settings for macros by: Go to File > Options > Trust Center > Trust Center Settings.
Click Macro Settings and choose between "Disable VBA macros with notification" (which will show a yellow warning bar as I mentioned above) and "Enable VBA macros" (only if you're sure the file is safe)
Then click OK to save the settings.
Option 4: Depending on where you download the file from
How macros are handled depends on where the file is stored:
This article provides detailed explanations for both scenarios: Macros from the internet are blocked by default in Office - Microsoft 365 Apps | Microsoft Learn
As community moderators, we kindly ask for your understanding that our access to internal development details is limited. Our primary role is to guide users toward the appropriate resources and support channels. While we may not have visibility into performing deeper backend analysis, we’ll continue doing our best to support you within the scope of our responsibilities.
I hope this information is helpful. If you have any questions or need further support, please don’t hesitate to reach out at any time.
Thank you for your patience and understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
If your Excel spreadsheet has macros that are blocked, you can take several steps to allow them to run. Here are some common approaches:
Unblock-File cmdlet in PowerShell to remove the Mark of the Web from the file.By following these steps, you should be able to enable macros in your Excel file.