Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Unblock Macros in Excel

    How to Unblock Macros in Excel

    Asmi DhakalBy Asmi DhakalSeptember 5, 2023 Excel 3 Mins Read

    When downloading spreadsheets online, you may notice an error message below the Excel ribbon that reads “Microsoft has blocked macros from running…”. This may prompt you to quickly enable macros from your Trust Center Settings. However, when coming back to the sheet, you can’t really use the macro.

    Especially if you’re just starting off with Excel, this issue can be really frustrating. But, there is a way to make your macros work, and that is by unblocking them from file properties. 

    Warning:Macros can potentially be dangerous if the source is not trusted. Therefore, only use unblock macros from the file you absolutely trust.

    Why Does Excel Block Macros?

    Microsoft has blocked macros from running error Excel

    Macros are created using the Visual Basics (VBA) language. As Excel also runs on the same language, Macros can interfere with the program’s tools, features, and even shortcuts.

    You may be expecting these changes when opening a spreadsheet containing macros from a trusted source. But, if you have downloaded the sheet online, you may not know the changes the macro can bring to the sheet. Therefore, Excel blocks macros by default.

    In other cases, your Macro may be blocked not only by Excel but also by Windows. When this happens you will not only have to enable your Macro from the Trust Center Settings, but also unblock the spreadsheet as a whole from the file properties.

    Windows, by default, will block spreadsheets containing macros that were downloaded online. The reasoning for this is quite similar to why Excel blocks macros within the program. Macros from untrusted sources can prompt Windows to delete important program files, and also cause files to go corrupt.

    What to do if the Source of the File is Untrusted?

    So, you want to extend the functionality of Excel using a macro. Instead of creating a macro from scratch, you chose to install a spreadsheet that already contains the macro. In these situations, you do not trust the source of the macro but would want to enable macros anyway.

    Logically, I would ask you not to unblock macros as there isn’t a way Excel can remove viruses created using macros. However, there are exceptional situations. For times like these, you can enable editing mode and first view the code the macro uses. If the code looks safe, then you can unblock the spreadsheet to run the macro.

    Verify if the Macro is Safe

    Make sure you’ve enabled the Developer tab in Excel then follow these steps to view the code used in a macro in Excel.

    1. Open the sheet and select the Enable Editing button next to the warning.
    2. Go to the Developer tab.
    3. From the Code section, select Visual Basic.
      Visual Basic Excel
    4. Expand the Class Modules. You can identify them through the folder icons in Project Explorer (Ctrl + R).
      Expand Class Modules Excel
    5. Double-click on each Module to view its code.
      Expand Class Modules Excel

    How to Unblock Macros in Excel

    When a macro goes against your device’s security protocols, it’s your device that blocks the macro; not Excel. Therefore you’ll have to unblock the spreadsheet from the file properties.

    Once you’ve verified the macro’s security, you can finally unblock the spreadsheet containing the macro. Remember, only unblock macros you can trust.

    1. Open File Explorer and head to the location of your sheet.
    2. Right-click on your spreadsheet.
    3. Select Properties.
      File Properties Excel
    4. In the Security section, check the box next to Unblock.
      Unblock Spreadsheet from File
    5. Click OK.
    Advanced Excel
    Asmi Dhakal

      Asmi is a content writer specializing in MS Office. She loves writing Excel-related content to assist other users to learn their way around the program. She started using Excel when she first entered the industry as a marketing intern. Soon, she realized that learning the often-overlooked spreadsheet program was no piece of cake. In her articles, she attempts to brief out complex topics to help beginner to intermediate-level Excel users. Asmi uses Excel for everything, including creating a grocery list to managing her personal finance. She’s a bit dramatic when it comes to the Flash Fill feature; so much so that could write a eulogy out of it. When she’s not working, you’ll find her learning a new recipe, or cleaning up her mess (out of the failed recipe).

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Why Does Excel Block Macros?
      • What to do if the Source of the File is Untrusted?
        • Verify if the Macro is Safe
      • How to Unblock Macros in Excel
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.