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 Enable Macros in Excel

    How to Enable Macros in Excel

    Nisha GurungBy Nisha GurungJuly 10, 2023 Excel 6 Mins Read

    Excel’s Macros are best for automating tasks in a workbook. Once you record a Macro, you could replay them whenever needed or copy them to another workbook. But, in order to create, run, and use all other functionalities of a Macro, the feature must be enabled in your workbook.

    “Macros have been Disabled” Error

    Excel disables Macros by default in Microsoft 365 files for security reasons. This is because Macros can sometimes be harmful to your computer. It may introduce malicious viruses and malware into the system.

    The security warning message “Macros have been disabled” can only be turned off if you manually enable macros.

    Warning: To be on the safe side, we recommend you to only enable them when needed. Since the Excel 365 version files cannot scan or get rid of macro viruses, it is risky to keep Macros on at all times.

    How to Enable Macros in Excel?

    There are three ways to enable Macros in Excel. If you wish to turn it on only for a single workbook, you can make your document trusted. To enable the Macros for all workbooks, you could opt for the Excel Trust Center menu. Similarly, to permanently turn on Macros, you can create a Trusted Location.

    Make Your Document Trusted

    At first, if you open a new workbook with Macros disabled, Excel will send you a Security Warning. But don’t worry! The warning is just to inform you that the file could have viruses or malware that can harm your PC. You can also see there’s an Enable Content button in the same warning message.

    Click Enable Content button to make your current workbook a Trusted Document. You’ll be prompted to confirm on the Security Warning dialogue box. Pick Yes. You should be able to use Macros now. Remember, this method will turn on Macro for only this document. 

    Warning: Do not click on Enable Content button unless you’re sure about using a Macro.

    Alternatively, you can also Enable Content from the Info menu.

    1. On Excel, go to Files > Info.
    2. On Security Warning, click on Enable Content menu and pick Enable All Content.
      On Security Warning, click on Enable Content menu-Enable All Content

    From Trust Center

    If you do not see a Security Warning in your workbook, use this method to turn on Macros. Excel’s Trust Center has the default Macro Settings. You can find various disable and enable options. Here, we will pick Enable VBA option to allow all Macros. Remember, the Macro Settings you change will apply to Excel app only.

    NOTE: If you’re using an organizational Microsoft account like school or work, you might not have permission to change this setting.
    1. Launch Excel.
    2. Click Options menu at the bottom-left.
      Click the Options menu in the lower left corner
    3. On Excel Options, head to Trust Center category. Click Trust Center Settings.
      On Excel Options, head to Trust Center category. Click Trust Center Settings
    4. On Trust Center window, click Macro Settings. 
      On Trust Center window, click Macro Settings
    5. Below Macro Settings, check the box for Enable VBA macros(not recommended; potentially dangerous code can run)
      Below, Macro Settings, tick the box for Enable all macros(not recommended; potentially dangerous code can run)
    6. Click OK.
    QuickTip: If you can see the Developer tab on your Excel ribbon, head to the tab. Then, click on Macro Security to quickly bring up the Macro Settings window.

    Create Trusted Location

    If you enable the Macros from the Macro Settings, you can modify the settings or disable them in the future. However, if you want to permanently enable Macros at all times, you could create a folder as a Trusted Location. When you do this, all Macro files from the Trusted location will run regardless of Macro Settings.

    Warning: As Excel will enable and run all Macros automatically, there’s a threat of viruses spreading to your PC. Be extremely careful when you pick a trusted location or add files to that trusted folder.
    1. Launch Excel and go to the Options menu.
      Launch Excel and go to the Options menu
    2. Click Trust Center and go to Trust Center Settings.
      On Excel Options, go to Trust Center. Then, click Trust center settings
    3. On left panel, head to Trusted Locations and choose Add new location.
      head to Trusted Locations and choose Add new location
    4. On Microsoft Office Trusted Location, hit Browse.
      On Microsoft Office Trusted Location, hit Browse
    5. Select a Folder as a Trusted Location and hit OK.
      Select a Folder as a Trusted Location and hit OK
    6. Tick the box for Subfolders of this located are also trusted if you want them to be trusted.
      Tick the box for Subfolders of this located are also trusted
    7. Enter a Description for the Trusted file. This is completely optional.
    8. Click OK.
      click OK
    9. Hit OK on all other open windows to confirm.

    Macro Security Settings

    Excel’s Macro Security has several options to control where, when, and what Macros to run in a workbook. To allow all Macros, we chose the Enable VBA Macros above. But, if you want to change the Macro Settings later, you can learn what each settings mean below. 

    Before you begin, open the Macro Settings from Trust Center settings or the Developer tab.

    • Disable VBA macros without notification: Completely disable Macros without any security alerts. But, the documents stored in trusted locations can run.
    • Disable VBA macros with notification: Disable Macros but get Security alerts if a document has Macros. You’ll get Enable Macros button in Security Warning. This will allow you to selectively choose to enable Macros depending on the case.
    • Disable VBA macros except for digitally signed macros: Allow only digitally signed Macros to run. You’ll get a notification if the publisher is not trusted. This setting disables all other unsigned Macros without alerts.
    • Enable VBA macros(not recommended; potentially dangerous code can run): Allow all kinds of Macros to run including the Malicious ones. 
    • Enable Excel 4.0 macros when VBA macros are enabled: Apply the Macro Settings to XLM Macros.
    • Trust access to the VBA project object model: Settings for Developers to allow or block the access to VBA project object model. If you disable the setting, it adds a layer of protection from viruses to your PC. However, if you allow it, Macro Viruses will spread through the system using VBA project systems.

    Related Questions

    How to solve “Microsoft has blocked Macros from running?”

    All the Office programs block the Macro files imported from the internet by default. So if you’re attempting to open one, you’ll get the “Microsoft has blocked Macros from running” error. To unblock a file, locate the document in file explorer. Right-click on the blocked file and pick Properties. On the Properties window, stay on the General tab. Next to the Security menu, tick the box for Unblock and hit OK. 

    Excel Basics
    Nisha Gurung

      As a Business Student, Nisha first used Excel to outline data trends for her college projects. Later, she started exploring basic Excel functions when she realized it is a powerful tool for all businesses today. Nisha believes she can relate to many of the issues users face when starting their Excel Journey. She uses this knowledge and experience to curate contents that are fit for all types of Excel users. Apart from writing, she enjoys reading books and traveling.

      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
      • “Macros have been Disabled” Error
      • How to Enable Macros in Excel?
        • Make Your Document Trusted
        • From Trust Center
        • Create Trusted Location
      • Macro Security Settings
      • Related Questions
        • How to solve “Microsoft has blocked Macros from running?”
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

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