Unblock Macros in Excel Files Downloaded From the Web

Excel files you download from the web may contain malicious code or macros, so when you open such files, they open in Protected View and display a yellow ‘Protected View’ warning bar on top of the formula bar on the Ribbon.

Unblock Macros in Excel Files Downloaded From the Web

In Protected View, Excel blocks macros from running to prevent the execution of any malicious code.

You cannot interact with or edit the macros while the file is in protected view. The file is in a ‘read-only’ mode with restricted functionality.

Protected View in Excel is a security feature that protects your computer from potentially harmful files. 

When an Excel file is opened in Protected View, Excel disables macros and other potentially harmful features until you explicitly choose to enable editing and macros.

When you click the Enable Editing button on the yellow ‘Protected View’ warning bar, you can edit the Excel file, but macros remain disabled. This is indicated by the light red ‘Security Risk’ warning bar displayed below the Ribbon.

Security risk bar

If you trust the source of the Excel files you downloaded from the web and want to restore their full functionality, you must unblock the macros. 

I will show you ways to unblock macros in Excel files you download from sites you trust on the web.

Unblock Macros in a Single Excel File on Your Hard Drive

Windows blocks Excel files you download from the web, preventing you from editing the files or enabling macros. To remove these restrictions, you need to unblock the file first.

Use the steps below to unblock the macros in the file:

  1. Close the file if it is open.
  2. Navigate to the folder where you downloaded the file.
  3. Right-click the file and select ‘Unblock’ on the shortcut menu.
select ‘Unblock’ on the shortcut menu
  1. Click Apply and OK.
  2. Open the file and click Enable Content when prompted on the yellow ‘Security Warning’ warning bar below the Ribbon.
click Enable Content when prompted on the yellow ‘Security Warning’ warning bar
Also read: Unprotect Excel Sheet Without Password

Unblock Macros in Multiple Excel Files on Your Hard Drive

You can unblock macros in multiple Excel files by moving them to a trusted location on the computer and opening them from there.

A trusted location in Excel is a folder on your computer that you’ve designated as safe.

Files stored in this location are automatically trusted by Excel, meaning Excel won’t prompt you to enable macros, when you open files from this folder.

This can be time-saving, especially if you regularly download Excel files with macros from the web.

Use the steps below to unblock macros in multiple downloaded Excel files:

  1. Move the downloaded Excel files to a folder you want to add to trusted locations in Excel. In this case, I have moved the Excel files I have downloaded to ‘Safe Folder’ on the C drive.
  2. Open Excel.
  3. Click Options on the left sidebar of the Welcome screen.
Click Options on the left sidebar

The above step opens the Excel Options dialog box.

  1. On the Excel Options dialog box, click ‘Trust Center’ on the left sidebar and ‘Trust Center Settings’ on the right.
click ‘Trust Center’

The above step opens the Trust Center dialog box.

  1. On the Trust Center dialog box, click ‘Trust Center Locations’ on the left sidebar and ‘Add new location’ on the right.
click ‘Trust Center Locations’

The above step opens the Microsoft Office Trusted Location dialog box.

  1. On the Microsoft Office Trusted Location dialog box, click the Browse button.
click the Browse button

The above step opens the Browse feature.

  1. On the Browse feature, navigate to and select the folder you want to add to trusted locations. In this case, I choose the ‘Safe Folder’ I created in Step #1 above.
  2. Click OK on the Browse feature.
  3. Click OK on the Microsoft Office Trusted Location dialog box.

Note: Check the ‘Subfolders of this location are also trusted’ before clicking the OK button if you want subfolders of the folder you have added to trusted locations to be also trusted by Excel.

Check the ‘Subfolders of this location
  1. Click OK on the ‘Trust Center’ dialog box.
  2. Click OK on the Excel Options dialog box.

You can now open files stored in the trusted folder without Excel prompting you to enable macros.

Note: Since macros are not blocked in files from the trusted location, managing the location carefully is critical. Ensure that you control who has permission to save files there.

Also read: Unlock VBA Project Password in Excel

Unblock Macros in All Excel Files From a Particular Trusted Website

If you frequently download or open files directly from a trusted cloud source, like your company’s website, you can add the site as a trusted site in Windows.

This ensures that Windows does not check or block macros from that location.

Note: By applying this setting, you’ll trust all macros from the target site, so only enable it if you’re confident that every file from the location is safe.

Use the steps below to add a website as a trusted site in Windows:

  1. Type ‘internet options’ on the Windows search box and click ‘Internet Options’ on the list that appears.
Type ‘internet options’ on the Windows search box

The above step opens the Internet Properties dialog box.

  1. On the Internet Properties dialog box, go to the Security tab, select the ‘Trusted sites’ zone, and click the Sites button.
select the ‘Trusted sites’ zone

The above step opens the ‘Trusted sites’ feature.

  1. On the ‘Trusted sites’ feature, enter the URL of the website containing the Excel files with the macros you want to execute in the ‘Add this website to the zone’ box, and uncheck ‘Require server verification (https:) for all sites in this zone,’ click Add and Close.
uncheck ‘Require server verification
  1. Click OK on the Internet Properties dialog box.

From now on, Windows will not check or block macros from the website you have added to the trusted sites zone.

I have shown you how to unblock macros in Excel files you download from the web. I hope you found the tutorial helpful.

Other Excel articles you may also like:

I am a huge fan of Microsoft Excel and love sharing my knowledge through articles and tutorials. I work as a business analyst and use Microsoft Excel extensively in my daily tasks. My aim is to help you unleash the full potential of Excel and become a data-slaying wizard yourself.

Leave a Comment