A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
According to your concern, for the most appropriate assistance, could you provide more detailed information about this situation:
- When you mentioned "set settings to trust a site", did you refer to Trust Locations settings in Excel > File > Options > Trust Center settings or Trusted Sites in Control Panel > Network and Internet > Internet options?
- Where is the file located (in OneDrive/SharePoint folder, download from drive network, stored locally, etc.)?
In the meantime, I suggest you can try using the Unblock security box workaround to see if it helps enable macro for your file:
- Open File Explorer, navigate to your Excel file that you need to enable macros
- Right click on it and choose Properties
- In General tab, check the Unblock box for 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, paste this script into PowerShell > Enter to unlock your file:
Unblock-File -Path "C:\Path\YourFile.xlsm"
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 not, we can work together to find a 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 "Accept Answer" 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