A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Michael Crosby,
Based on your sharing, may I confirm that you have tried the Unblocking Security box and adding website as Trusted Sites, but the macro is still blocked?
In that case, I suggest you can try some other steps to unblock the macro in your Excel file:
1/ Use PowerShell
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, paste this script into PowerShell > Enter to unlock your file:
Unblock-File -Path "C:\Path\YourFile.xlsm"
- If you don't know your file path, you can open File Explorer > navigate to the folder you store the file > select the file and right-click > Copy as Path (or use short-cut Ctrl+Shift+C) > paste it to replace the
"C:\Path\YourFile.xlsm"part
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 file that needs to enable macro
- Press OK to close all the dialog boxes then try opening your file again
3/ Adjust macros settings
- 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 immediately
If it is showing a red warning bar, you can adjust the trust center settings for macros by
- Go to File > Options > Trust Center > Trust Center Settings
- Click Macro Settings and choose "Enable VBA macros" (only if you're sure the file is safe)
- Then click OK to save the settings and reopen the documents
If the issue still persists, for further assistance, please share the detail about where the file is located (in OneDrive/SharePoint folder, download from drive network, stored locally in Download/Desktop folder, etc.).
Please understand that my initial response does not always resolve the issue immediately. However, you can try these steps and let me know if it works for you. If it not, we can work together to figure out the solution.
If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.
Thank you for your understanding and cooperation. I'm looking forward to your reply.
If the answer is helpful, please click "YES" and kindly upvote it.
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.