How Do I Enable Macros In Excel

8 min read

Macros in Microsoft Excel are powerful tools that automate repetitive tasks, saving hours of manual work and reducing the risk of human error. Whether you are generating complex financial reports, formatting massive datasets, or creating custom functions, macros—written in Visual Basic for Applications (VBA)—are the engine behind advanced spreadsheet automation. Even so, because macros execute code, Microsoft disables them by default to protect users from potentially malicious scripts. Understanding how to safely enable macros is the critical first step toward unlocking Excel’s full potential.

Not obvious, but once you see it — you'll see it everywhere.

Understanding Macro Security Settings

Before diving into the specific steps, it is essential to understand why Excel blocks macros. While legitimate macros streamline workflows, malicious actors can embed harmful code designed to steal data, install malware, or corrupt files. Even so, a macro is essentially a small program living inside your spreadsheet. Excel’s Trust Center acts as the gatekeeper, offering several layers of protection.

The Trust Center provides four primary macro settings:

  1. Disable all macros without notification: The most secure option. Even so, no macros run, and you see no warnings. Use this if you never use macros.
  2. Disable all macros with notification (Default): Macros are blocked, but a security warning bar appears at the top of the worksheet, allowing you to enable them on a case-by-case basis. And this is the recommended setting for most users. 3. Disable all macros except digitally signed macros: Unsigned macros are blocked silently. Now, macros signed by a trusted publisher (verified by a certificate authority) run automatically. Which means this is ideal for corporate environments with standardized, vetted tools. 4. Enable all macros (Not recommended): All macros run without warning. This poses a significant security risk and should only be used temporarily for testing in a controlled environment.

There is also a checkbox labeled "Trust access to the VBA project object model." This setting controls whether external code (like an add-in or another Office program) can programmatically manipulate the VBA editor. Keep this unchecked unless you are developing add-ins.

Enabling Macros for a Single File (The Notification Method)

The most common scenario involves opening a workbook sent by a colleague or downloaded from a trusted source. With the default setting ("Disable all macros with notification"), Excel prevents the code from running immediately but gives you the choice to allow it.

Real talk — this step gets skipped all the time.

  1. Open the Excel workbook containing the macros.
  2. Look directly below the ribbon (the menu bar at the top). A yellow Message Bar will appear with a shield icon and the text: "Security Warning: Macros have been disabled."
  3. Click the "Enable Content" button on the right side of that bar.
  4. The workbook will reload, and the macros will now be active for this session.

Important Nuance: If you see a red Message Bar stating "Security Warning: This file contains macros that have been disabled because the security setting is set to disable all macros," your Trust Center is set to "Disable all macros without notification." You cannot enable content via the Message Bar in this state; you must change the global settings (covered in the next section).

The "Enable Content" Dropdown Options

Clicking the small arrow next to "Enable Content" (or clicking "File > Info") reveals two additional choices:

  • Enable All Content: Turns on macros, ActiveX controls, and data connections for this session.
  • Advanced Options: Opens a dialog box where you can choose "Enable content for this session" (temporary) or "Trust this document" (permanent). Selecting "Trust this document" adds the file to your Trusted Documents list, meaning Excel will skip the warning next time you open this specific file on this specific computer.

Changing Global Macro Settings via the Trust Center

If you work with macros daily, stopping to click "Enable Content" every time becomes tedious. You can adjust the global default behavior through the Trust Center. Plus, remember: lowering security globally increases risk. Only choose "Enable all macros" if you fully understand the implications.

The official docs gloss over this. That's a mistake Worth keeping that in mind..

Steps for Windows (Excel 2016, 2019, 2021, Microsoft 365)

  1. Click the File tab to enter Backstage view.
  2. Select Options at the bottom of the left pane.
  3. In the Excel Options dialog box, click Trust Center in the left sidebar.
  4. Click the Trust Center Settings… button on the right.
  5. Select Macro Settings in the left pane of the new window.
  6. Choose your desired setting (e.g., "Disable all macros with notification" for balance, or "Enable all macros" for unrestricted access).
  7. Click OK twice to close both dialog boxes.

Steps for Mac (Excel for Microsoft 365 / Excel 2021+)

The interface differs slightly on macOS but the logic remains the same.

  1. Click Excel in the top menu bar (next to the Apple logo).
  2. Select Settings... (or Preferences on older versions).
  3. Click Security & Privacy (shield icon).
  4. Under the Macro Security section, select your preferred radio button.
  5. Close the window. Changes take effect immediately; no restart required.

The "Trusted Locations" Strategy: Best Practice for Power Users

Rather than lowering global security to "Enable all macros," the professional approach is to use Trusted Locations. Even so, a Trusted Location is a specific folder on your computer or network that you designate as safe. Any file opened from this folder—regardless of global macro settings—will have macros enabled automatically without a prompt.

This offers the best of both worlds: your "Downloads" folder and email attachments remain locked down (high security), but your personal development folder or departmental shared drive runs macros without friction (high productivity) The details matter here..

How to Set Up a Trusted Location

  1. Go to File > Options > Trust Center > Trust Center Settings…
  2. Select Trusted Locations in the left pane.
  3. You will see default paths (usually for add-ins and templates). Do not modify these.
  4. Click Add new location…
  5. Click Browse… and select the folder where you store your macro-enabled workbooks (e.g., C:\Users\YourName\Documents\MyMacros).
  6. Crucial Step: Check the box "Subfolders of this location are also trusted" if you organize files in subdirectories.
  7. Add a description (e.g., "Personal VBA Projects") and click OK.
  8. Click OK to close remaining dialogs.

Security Note: Never set your entire Documents folder, Desktop, or a synced cloud folder (OneDrive, Dropbox, Google Drive) as a Trusted Location. If a malicious file syncs to that folder, it executes automatically. Create a dedicated, specific folder for your trusted Excel tools.

Trusted Documents vs. Trusted Locations

It is easy to confuse these two features. If you modify the file (even just saving it), the hash changes, and the trust is revoked. When you click "Enable Content" and choose "Trust this document," Excel creates a hash of that specific file. Moving a file into the folder trusts it; moving it out revokes trust. In practice, you will be prompted again. Also, any file placed inside runs macros immediately. Worth adding: this is convenient for one-off files but fragile for active development. Worth adding: * Trusted Locations: Folder-specific. Plus, * Trusted Documents: File-specific. This is strong for ongoing projects.

At its core, where a lot of people lose the thread.

Handling Digitally Signed Macros

In enterprise environments, IT departments often sign macros with a digital certificate. This verifies the publisher's identity and guarantees the code hasn't been tampered with since signing Easy to understand, harder to ignore. Turns out it matters..

If your Trust Center is set to "Disable all macros except digitally signed macros":

  1. In practice, open a workbook with a signed macro. 2.

If the publisher is already listed under Trusted Publishers, the workbook will open without any security warning and the macros will execute automatically. In that case, the only step you need to take is to verify that the certificate associated with the publisher remains valid; an expired or revoked certificate will cause Excel to block the macros even though the publisher’s name appears in the trusted list Still holds up..

When the publisher is not yet trusted, follow these steps:

  1. Open the Trust Center – File ▶ Options ▶ Trust Center ▶ Trust Center Settings.
  2. Select Trusted Publishers from the left‑hand menu.
  3. Click Add new location… (the dialog actually adds a certificate, not a folder).
  4. Browse to the .pfx or .cer file that contains the publisher’s digital certificate, select it, and confirm.
  5. If prompted, enter the password for the certificate file.
  6. After the certificate appears in the list, click OK to close the dialogs.

Once the certificate is added, any workbook signed by that publisher will be allowed to run macros silently, provided the Trust Center remains set to “Disable all macros except digitally signed macros.” This approach gives you the security of signature verification while eliminating the repetitive “Enable Content” prompts for your regular development files And that's really what it comes down to..

Best‑practice checklist for a smooth workflow

  • Create a dedicated Trusted Location for all macro‑enabled workbooks; keep it separate from general user folders.
  • Enable the “Subfolders” option only for that location, so sub‑directories inherit the trust without exposing unrelated files.
  • Use code signing for any macro that will be shared across the organization; this adds an extra layer of authenticity beyond the location trust.
  • Periodically audit the Trusted Locations and Trusted Publishers lists to remove entries that are no longer needed.
  • Educate users about the difference between Trusted Documents (file‑level) and Trusted Locations (folder‑level) to prevent accidental exposure of sensitive files.

By combining a carefully scoped Trusted Location with signed macros and a disciplined review cadence, you can enjoy the productivity gains of unrestricted VBA execution while maintaining a strong security posture. This balanced configuration scales well from a single developer’s laptop to a multi‑user departmental environment, ensuring that macro‑driven solutions remain both reliable and safe.

Up Next

What's Dropping

Close to Home

Don't Stop Here

Thank you for reading about How Do I Enable Macros In Excel. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home