Excel Fix: SECURITY RISK Microsoft has blocked macros from running because the source of this file is untrusted.


Excel - SECURITY RISK Microsoft has blocked macros from running because the source of this file is untrusted

When you try to open and work on a Microsoft Office Excel Sheet on your Windows/Mac device and you see the error "Microsoft has blocked macros from running because the source of this file is untrusted." well this be because

The Macros from the internet are blocked by default in Microsoft Office!

If an Excel (xlsx or xls) or other office files you download from the internet that has VBA macros in them, there is a potential that it may contain a malicious script that can gain access to your device and deploy malware and ransomware. Thus Microsoft has changed the default behavior of Office applications to block macros in files from the internet.




How to unblock files with VBA Macros

    1. Open the file in Office App (Excel/Word/PowerPoint)
    2. Now go to General tab -> Properties.
    3. Now select the Unblock checkbox.

Note: You can also make use of the PowerShell CMDLet Unblock-File


Example:
PS Unblock-File -Path C:\Users\Code2care\Documents\Downloads\ExcelSpreadSheet.xlsx

-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap