How to fix "Microsoft has blocked macros" (2 simple ways) (2024)

You are probably here because you’ve seen a warning message: Microsoft has blocked macros from running because the source of this file is untrusted. This post provides the background to this message and the steps you should take to enable the file.

During 2022, Microsoft introduced new security into the Windows version of Microsoft Excel to protect users against malicious Excel macros. Due to a significant increase in attempts by hackers to use macros, Microsoft had to take steps to protect users.

It is very difficult to identify VBA code that is legitimate and code which is not. Therefore, the security Microsoft introduced was so wide-reaching that it impacted all Excel users.

Even files with completely safe macros receive the same warning message; therefore, it is not necessarily anything to worry about.

Table of Contents
  • Overview
  • What will you see?
  • How to unblock a macro workbook (Method #1)
  • Trusted locations (Method #2)
  • What about Add-ins?
  • Conclusion

Watch the video


Watch the video on YouTube.

Overview

Macros are a great way to automate Excel; they give us a lot of power to interact with, not just Excel but Windows and other Office applications. Unfortunately, hackers know about this power too, and use files containing macros to distribute malware to PCs and entire networks.

The change introduced by Microsoft automatically blocks all macros in workbooks downloaded from the internet. While it is frustrating to users, it is to ensure online safety, which is of critical importance.

This security change does not just affect Excel; other Office applications are affected too: Access, PowerPoint, Word, and Visio.

Since macros are used to increase productivity by automating Excel, I wanted to let you know how to unblock files. Once they are unblocked, you can use them as usual. This post provides 2 simple ways to unblock macros, so that you don’t receive the Microsoft has blocked macros from running because the source of this file is untrusted message again.

What will you see?

Files downloaded from the internet using the Windows operating system have an attribute added to them, known as the Mark of the Web (MOTW).

Previously, when users opened macro files with the MOTW, a warning appeared that required the user to click Enable Content.

How to fix "Microsoft has blocked macros" (2 simple ways) (1)

Unfortunately, too many users clicked Enable Content without considering whether the file was safe.

With the new behavior, users see a message: “Microsoft has blocked macros from running because the source of this file is untrusted”. This will be the same message for all macro-enabled files downloaded from the internet; therefore, even safe macros trigger this warning.

How to fix "Microsoft has blocked macros" (2 simple ways) (2)

Clicking Learn More takes you to a web page detailing the reasons for this message and provides instructions on how to enable the file for use: https://support.microsoft.com/en-gb/topic/a-potentially-dangerous-macro-has-been-blocked-0952faa0-37e7-4316-b61d-5b5ed6024216

How to unblock a macro workbook (Method #1)

The first method is to unblock the file. This requires a few extra clicks. By adding these additional steps, Microsoft hopes users will only enable files they trust.

The steps to unblock a file are as follows:

  1. Close the workbook
  2. Navigate to the location where the workbook is saved
  3. Right-click on the file and select Properties from the menu
    How to fix "Microsoft has blocked macros" (2 simple ways) (3)
  4. Check the Unblock box, then click OK
    How to fix "Microsoft has blocked macros" (2 simple ways) (4)

Now the workbook is unblocked, and the macros can run. It is essential to only unblock files from sources that you trust.

That was simple enough; it only required a few additional clicks. However, as we perform this file-by-file, it could become time-consuming for many users. So, next, we look at another method that removes the block for lots of files.

Trusted locations (Method #2)

The second method uses a “trusted location”. Any workbooks saved in trusted locations bypass the macro security and are not blocked by default.

To find out which locations are trusted or add new ones, go to File > Options > Trust Center Settings… > Trusted Locations.

How to fix "Microsoft has blocked macros" (2 simple ways) (5)

To add a new trusted location, click the Add new location… button and follow the on-screen prompts.

Once set up, trusted locations are easy to use. Just save the file in the trusted folder, and open it as usual. The warning message should not appear, and you can use the file.

Obviously, take care only to save files you trust in a trusted location.

What about Add-ins?

Excel VBA Add-ins behave in the same way as before the security change. It has been necessary to unblock add-ins for several years; therefore, this behavior has not changed.

Conclusion

Online security is critical, so Microsoft has taken steps to help users stay safe. While you may not have the feature that blocks downloaded macros yet, Microsoft indicated that it will roll out this feature to Excel 2013 and later (https://docs.microsoft.com/en-gb/DeployOffice/security/internet-macros-blocked).

At least now, if you receive the Microsoft has blocked macros… warning again, you will know what to do.

Did either method in this post fix your problem? Let us know in the comments. Also, please comment if you have an alternative approach to fix this issue.

What next?

Discover how you can automate your work with our Excel courses and tools.

How to fix "Microsoft has blocked macros" (2 simple ways) (6)

Excel Academy
The complete program for saving time by automating Excel.

Find out more

How to fix "Microsoft has blocked macros" (2 simple ways) (7)

Excel Automation Secrets
Discover the 7-step framework for automating Excel.

Find out more

How to fix "Microsoft has blocked macros" (2 simple ways) (8)

Office Scripts: Automate Excel Everywhere
Start using Office Scripts and Power Automate to automate Excel in new ways.

Find out more

How to fix "Microsoft has blocked macros" (2 simple ways) (2024)

FAQs

How to fix "Microsoft has blocked macros" (2 simple ways)? ›

Step 1 – Launch MS Access. Click on “Options”: Step 2 – Click on “Trust Center”, then on “Trust Center Settings”, “Macro settings”, select “Enable all macros” and click OK: Step 3 – Exit MS Access.

How do I fix blocked macros in Excel? ›

Change macro settings in the Trust Center
  1. Select the File tab and choose Options.
  2. Select Trust Center, and then choose Trust Center Settings.
  3. In the Trust Center, select Macro Settings. ...
  4. Make the selections that you want, then select OK.

How do I unblock macros in Access? ›

Step 1 – Launch MS Access. Click on “Options”: Step 2 – Click on “Trust Center”, then on “Trust Center Settings”, “Macro settings”, select “Enable all macros” and click OK: Step 3 – Exit MS Access.

How to fix #blocked in Excel? ›

Check the permission on the file, Select Enable Content on the trust bar, or check the security and privacy options in the Microsoft Office Trust Center.

How do I enable macros again? ›

Click Options. Click Trust Center, and then click Trust Center Settings. In the Trust Center, click Macro Settings. Make the selections that you want, then click OK.

How do I unblock macros on my computer? ›

How to resolve "Microsoft has blocked macros"
  1. Close the workbook containing the blocked macro.
  2. In File Explorer, browser to the location where the workbook is saved.
  3. Right-click the file, and select Properties from the context menu.
  4. In the Properties dialog box, check the Unblock box, and then click OK.
Mar 28, 2023

How to get rid of blocked content in Excel? ›

Change external content settings for Excel in the Trust Center
  1. In Excel, click the File tab.
  2. Click Options > Trust Center > Trust Center Settings.
  3. On the left, select External Content.
  4. Click the option that you want under Security settings for Data Connections:

How to enable Microsoft has blocked macros from running untrusted source setting? ›

Go to "File" > "Options" > "Trust Center" > "Trust Center Settings" > "Macro Settings." Make sure that "Enable all macros"(not recommended; potentially dangerous code can run)" is selected. Be cautious when adjusting these settings, especially if you are working with macros from untrusted sources.

How to fix macro issues in Excel? ›

Step 1: Click on "File" > "Options." Step 2: Go to "Trust Center" > "Trust Center Settings." Step 3: Select "Macro Settings" and choose "Enable all macros" (not recommended for security reasons) or "Disable all macros with notification." Step 4: Click "OK" to save changes.

How do I unlock a macro workbook? ›

Use Alt+F11 to enter the macro editor. Once in VBA double click the sheet you need to unlock from the menu listing on the left. This will open the general declarations page for the sheet. Sub PasswordBreaker() 'Breaks worksheet password protection.

How to unlock macros in Excel? ›

When you're ready to apply the settings, follow these six steps for enabling macros in Excel permanently:
  1. Open your Excel file. ...
  2. Find the Trust Center. ...
  3. Navigate to "Macro Settings." Upon opening the Trust Center, you can see settings to keep your documents safe and maintain the security of your data. ...
  4. Enable all macros.
May 28, 2024

How do I unblock macros in Word? ›

Enabling Macros in Microsoft Word 2016 and Microsoft Word 2013
  1. Click the File tab.
  2. Click Options.
  3. Click Trust Center, and then click Trust Center Settings.
  4. In the Trust Center, click Macro Settings.
  5. Select the option labeled “Enable all macros”.
  6. Click OK.

How do I remove a block in Excel? ›

Select the cells, rows, or columns that you want to delete. Right-click, and then select the appropriate delete option, for example, Delete Cells & Shift Up, Delete Cells & Shift Left, Delete Rows, or Delete Columns.

How to fix blocked macros in Excel? ›

To unblock macros in a file, like one from the internet or an email attachment, remove the Mark of the Web on your local device. To remove, right-click on the file, choose Properties, and then select the Unblock checkbox on the General tab.

How do I unblock macros on Access? ›

On the left-side of the window click on “Macro Settings”. 7. Click on the radio button next to “Enable all macros …” as shown in this screenshot.

Why block macros? ›

Macros are often part of phishing or spear phishing campaigns. In this, an attacker sends emails and attempts to convince the user to open the attached file and run the malicious macro.

Why did macros stop working on Excel? ›

Excel has security settings that control the execution of macros. If your security settings are set to a high level, Excel may disable macros. Go to the "File" tab, click on "Options," select "Trust Center," and then click on "Trust Center Settings." Under "Macro Settings," choose a setting that allows macros.

Top Articles
Three Ingredient Buttermilk Biscuit Recipe
32 Spirited Halloween Jell-O Shots Recipes from Around the Web
Funny Roblox Id Codes 2023
Golden Abyss - Chapter 5 - Lunar_Angel
Www.paystubportal.com/7-11 Login
Joi Databas
DPhil Research - List of thesis titles
Shs Games 1V1 Lol
Evil Dead Rise Showtimes Near Massena Movieplex
Steamy Afternoon With Handsome Fernando
Slay The Spire Red Mask
Top Hat Trailer Wiring Diagram
World History Kazwire
George The Animal Steele Gif
Red Tomatoes Farmers Market Menu
Nalley Tartar Sauce
Chile Crunch Original
Immortal Ink Waxahachie
Craigslist Free Stuff Santa Cruz
Mflwer
Spergo Net Worth 2022
Costco Gas Foster City
Obsidian Guard's Cutlass
Marvon McCray Update: Did He Pass Away Or Is He Still Alive?
Mccain Agportal
Amih Stocktwits
Fort Mccoy Fire Map
Uta Kinesiology Advising
Kcwi Tv Schedule
What Time Does Walmart Auto Center Open
Nesb Routing Number
Olivia Maeday
Random Bibleizer
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
Black Lion Backpack And Glider Voucher
Gopher Carts Pensacola Beach
Duke University Transcript Request
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
Jambus - Definition, Beispiele, Merkmale, Wirkung
Netherforged Lavaproof Boots
Ark Unlock All Skins Command
Craigslist Red Wing Mn
D3 Boards
Jail View Sumter
Nancy Pazelt Obituary
Birmingham City Schools Clever Login
Thotsbook Com
Funkin' on the Heights
Vci Classified Paducah
Www Pig11 Net
Ty Glass Sentenced
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 6565

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.