Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (2024)

Microsoft Excel macros can help you save a lot of time and effort by allowing you to automate repetitive tasks. Unfortunately, malicious actors can easily exploit macros and embed potentially dangerous code. As a result, you may encounter the ‘Microsoft has blocked macros’ error in Excel on your Windows 10 or 11 computer, leaving you confused about how to unblock them.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (1)

It can be annoying when Microsoft Excel blocks macros on spreadsheets you have created or obtained from a coworker. Below, we have compiled a list of useful tips that should help fix the error and allow you to use macros in Excel.

1. Unblock the File

Microsoft Excel may block macros for a spreadsheet if you have obtained it from another computer or the internet. If that’s the case, you will need to unblock the Excel file to fix the error.

Step 1: Locate and right-click on the problematic file and select Properties.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (2)

Step 2: Under the General tab, tick the Unblock option. Then, hit Apply followed by OK.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (3)

Try opening the spreadsheet again and check if the error still appears.

2. Enable Macros Manually

If the macros don’t work after you unblock the Microsoft Excel spreadsheet, you can try enabling them manually. Before you proceed, it’s important to note that macros can pose a security risk. Hence, you should only enable macros manually if you have received the file from a trusted source.

Step 1: Open your Excel spreadsheet and click the File menu in the top left corner.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (4)

Step 2: Switch to the Info tab, click the Enable Content menu, and select Enable Content.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (5)

Once you complete the above steps, Excel will enable macros for the specified file.

3. Mark the Folder Containing Your Files as a Trusted Location

Are you encountering the ‘Microsoft has blocked macros from running’ error with multiple spreadsheets? If so, individually enabling macros for each file can be tiresome. Instead, you can mark the folder containing your Excel spreadsheets as a trusted location in Excel. Once you do, Excel will allow macros from all spreadsheets stored in that folder.

Step 1: Open Microsoft Excel and click the File menu in the top left corner.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (6)

Step 2: Select Options in the bottom left corner.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (7)

Step 3: Switch to the Trust Center tab and click the Trust Center Settings button.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (8)

Step 4: In the Trusted Locations tab, click the Add new location button.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (9)

Step 5: Click the Browse button and select your your Excel spreadsheet folder. Then, click OK.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (10)

Restart Excel after this and check if the error still pops up.

4. Check Group Policy Settings

Another reason Microsoft Excel may block macros on your Windows computer is if an administrator has enabled the ‘Block macros from running in Office files from the internet’ policy. Here’s what you can do to change that and unblock macros in Excel.

Note that this only applies to those running the Professional, Education, and Enterprise editions of Windows, as Group Policy is not available on the Windows Home edition.

Step 1: Press the Windows + R keyboard shortcut to open the Run dialog box. Type gpedit.msc in the text box and hit OK.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (11)

Step 2: When the User Account Control (UAC) prompt appears, select Yes to proceed.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (12)

Step 3: Use the left pane to navigate to the following folder:

User Configuration\Administrative templates\Microsoft Excel 2016\Excel options\Security Trust Center

Step 4: Double-click the ‘Block macros from running in Office files from the internet’ policy in the right pane.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (13)

Step 5: Select Disabled and then hit Apply followed by OK.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (14)

5. Run the Office Repair Tool

If nothing works, there may be an issue with some of the core app files associated with Excel. In that case, you can run Microsoft’s Office repair tool, automatically fixing problems with all your Office apps.

Step 1: Press the Windows key + R keyboard shortcut to open the Run dialog box. In the Open field, type appwiz.cpl and press Enter.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (15)

Step 2: In the Programs and Features window, locate the Microsoft Office suite or Microsoft 365. Right-click on it and select Change.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (16)

Step 3: Select Online Repair and click the Repair button to continue.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (17)

Unleash Efficiency With Macros

Using Microsoft Excel day in and day out for work can be inconvenient when it blocks macros and prevents you from automating tasks. Applying the above tips should help unblock macros in Microsoft Excel and allow you to resume your work.

Was this helpful?

Thanks for your feedback!

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.

Top 6 Fixes for Microsoft Has Blocked Macros Error in Excel for Windows (2024)

FAQs

How to fix Microsoft has blocked macros from running 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 in Excel? ›

How to enable 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. ...
  5. Learn how to disable macros for the future.
May 28, 2024

How to fix a macro error 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 to bypass Microsoft has blocked macros from running because the source of this File is untrusted? ›

Go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. Ensure the network share location is listed and enabled. Check "Allow trusted locations on my network" if applicable.

How do I turn off macro error? ›

You can do this by going to File > Options > Trust Center > Trust Center Settings > Macro Settings in Excel. You can choose to enable all macros, disable all macros, disable all macros with notification, or disable all macros except digitally signed macros.

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 do I stop access from blocking macros? ›

In the Access Options screen, choose Trust Center, then click the Trust Center Settings button. 3. Choose Macro Settings, and select “Enable all macros”. (You can ignore the “not recommended potentially dangerous code can run” warning.)

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 get rid of macros in Excel? ›

Delete a macro
  1. On the Developer tab, click Macros.
  2. In the list, click the macro that you want to delete, and click the delete button.

What is error 6 in Excel macro? ›

Excel VBA Overflow Error occurs when a numeric value exceeds the range allowed for the data type of a variable. “Run-time Error 6: Overflow” is the specific error message for this issue in VBA. Different data types (Byte, Integer, Long) have varying limits, and exceeding these limits triggers Overflow Errors.

How do I skip macro errors? ›

We need to add the “On Error Resume Next” statement to ignore this error. As you can see above, we have added the statement at the top of the code before any lines start. Now, run the code and see what happens. Now, we are in the line given the error previously, press the F8 key, and see what happens.

How do you handle macro errors? ›

You do this by including an On Error statement in your macro. When a runtime error occurs, the On Error statement transfers control to an error-handling routine. To trap errors, you must set your error trap above the point in the procedure where errors are likely to occur.

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 Excel? ›

Right-click on the file. Click on Properties. Check "Unblock" and click "Apply."

How do I allow macros to run in Excel? ›

Click the File tab, and then click Options at the very bottom of the left bar. On the left-side pane, select Trust Center, and then click Trust Center Settings… . In the Trust Center dialog box, click Macro Settings on the left, select Enable all macros and click OK.

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.

Why did my macros stop working in 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.

What does it mean when Excel Cannot run macro? ›

Excel Add-ins: Some Excel add-ins can interfere with macro recording. Try disabling add-ins one by one to see if any are causing the issue. Corrupted Excel Installation: In rare cases, a corrupted Excel installation can cause issues with macro recording. You might consider repairing or reinstalling Excel.

Top Articles
Food Labeling Guide
30 Delicious and Healthy Keto Snacks
Netronline Taxes
neither of the twins was arrested,传说中的800句记7000词
Restored Republic January 20 2023
Craigslist Cars Augusta Ga
Occupational therapist
Mychart Mercy Lutherville
DEA closing 2 offices in China even as the agency struggles to stem flow of fentanyl chemicals
Get train & bus departures - Android
Rainbird Wiring Diagram
Dr Klabzuba Okc
Bubbles Hair Salon Woodbridge Va
Tiraj Bòlèt Florida Soir
Bros Movie Wiki
Sport Clip Hours
What is the difference between a T-bill and a T note?
Google Feud Unblocked 6969
Ostateillustrated Com Message Boards
Velocity. The Revolutionary Way to Measure in Scrum
Ms Rabbit 305
Accident On The 210 Freeway Today
Lakewood Campground Golf Cart Rental
The EyeDoctors Optometrists, 1835 NW Topeka Blvd, Topeka, KS 66608, US - MapQuest
Tips and Walkthrough: Candy Crush Level 9795
Redfin Skagit County
University Of Michigan Paging System
Mals Crazy Crab
800-695-2780
Bra Size Calculator & Conversion Chart: Measure Bust & Convert Sizes
Hobby Lobby Hours Parkersburg Wv
Encore Atlanta Cheer Competition
Remnants of Filth: Yuwu (Novel) Vol. 4
Lindy Kendra Scott Obituary
Average weekly earnings in Great Britain
Adecco Check Stubs
Litter-Robot 3 Pinch Contact & DFI Kit
Linabelfiore Of
Craigslist Pets Huntsville Alabama
Trap Candy Strain Leafly
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Download Diablo 2 From Blizzard
5A Division 1 Playoff Bracket
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Mychart University Of Iowa Hospital
Canvas Elms Umd
Maplestar Kemono
Gonzalo Lira Net Worth
Puss In Boots: The Last Wish Showtimes Near Valdosta Cinemas
Mawal Gameroom Download
Naughty Natt Farting
Saw X (2023) | Film, Trailer, Kritik
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6569

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.