XcelNoteXcelNote
  • MS Excel Intro
  • Tips & Tricks
  • Tutorial
  • Excel Formulas
  • Excel Shortcut
Reading: How to Enable Macros in Excel
Share
Notification Show More
Font ResizerAa
XcelNoteXcelNote
Font ResizerAa
  • MS Excel Intro
  • Tips & Tricks
  • Tutorial
  • Excel Formulas
  • Excel Shortcut
Search
  • MS Excel Intro
  • Tips & Tricks
  • Tutorial
  • Excel Formulas
  • Excel Shortcut
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.
XcelNote > Blog > Tutorial > How to Enable Macros in Excel
Tutorial

How to Enable Macros in Excel

Mithlesh By Mithlesh Last updated: January 5, 2026 6 Min Read
how to enable macros in Excel
SHARE

In Excel, Macros let you automate boring jobs and get better results, but you need to make sure they’re enabled correctly before you can use them. It’s important to know the right way to enable Excel macros, whether you’re working on a single project or using them across multiple files.

Contents
What Are Macros, and How Do They Work?Main Types of Macros🔧 How to Enable Macros in ExcelEnabling Macros for a Single WorkbookEnabling Macros for All WorkbooksHow to Enable Macros in Excel on MacTroubleshooting: Macros Not Working After Enabling⚠️ Troubleshooting Common IssuesFAQ: How to Enable Macros in Excel1. Why is the “Enable Content” button not available?2. Why Do Macros Still Get Disabled After Enabling?3. Can I enable macros on a temporary basis?

In this article, you’ll learn how to enable macros for a single workbook, adjust macro security settings to allow macros across all Excel documents, and create trusted locations to skip repeated security prompts.

We’ll also explain how to enable macros in Excel on Mac, so no matter your device or setup, you can start enabling Excel macros with confidence and control.

What Are Macros, and How Do They Work?

Macros in Excel are sequences of instructions that automate repetitive work. They can be recorded using Excel’s built-in Macro Recorder or written directly in VBA (Visual Basic for Applications).

When you know how to enable macros in Excel, you can automate tasks such as data entry, formatting, and generating complex reports. For example, a recorded macro can transform an entire spreadsheet in seconds, while a VBA macro can pull data from multiple sources efficiently.

Main Types of Macros

Generally there are two types of Macros in Excel:

Macro TypeMethodUse Case Example
Recorded MacroMacro RecorderRepetitive formatting
VBA MacroCustom CodingAutomated data import

ALSO READ: How to Subtract in Excel

🔧 How to Enable Macros in Excel

Enabling Macros for a Single Workbook

  1. Open the workbook that has macros.
  2. You will see a yellow security warning; click “Enable Content” to allow macros temporarily.
How to Enable Macros in Excel

This technique is perfect if you want to know how to turn on macros in Excel for only one report or template, without affecting global macro security settings.

Note:

  • The macros will only be active for this session.
  • If you close and reopen the worksheet, macros will be disabled again unless you change permanent security settings.

Enabling Macros for All Workbooks

Enabling macros for all workbooks allows any Excel file you open to run its macros without prompts, which can be useful in controlled environments but risky in other situations.

  • Open Excel (no file required).
  • Then Go to File > Options > Trust Center > Trust Center Settings.
How to Enable Macros in Excel
How to Enable Macros in Excel
How to Enable Macros in Excel
  • Under Macro Settings, select one of these:
    • Disable all macros with notification
    • Enable all macros
    • Disable all macros except digitally signed macros
How to Enable Macros in Excel

You will now see several macro security options. To allow all macros by default, select Enable all macros (not recommended: potentially dangerous code may run). This option allows any macro in any Excel file to run automatically without confirmation prompts, which can pose security risks if used carelessly.

(Optional) Add reliable locations:

  • In Trust Center Settings, choose Trusted Locations.
  • Click Add new place and choose a safe folder for macro-enabled files.

How to Enable Macros in Excel on Mac

To enable macros in Excel on Mac, simply follow these steps:

  • Step 1: Open Excel workbook
  • Step 2: Then go to Excel > Preferences > Security & Privacy.
  • Step 3: Find Enable Macros.
  • Step 3: Restart Excel if the display prompts you to.

Troubleshooting: Macros Not Working After Enabling

Sometimes, macros still fail to work even after you follow instructions on how to enable macros in Excel. Common explanations include:

  • The file is not in a trusted place.
  • The macro is banned owing to its origin (e.g., downloaded from the internet).
  • The file is corrupted or contains missing code.

To fix problems, right-click the file in Windows Explorer, choose “Properties,” and click “Unblock” if required. Review the macro code for mistakes. For more details, go to the Excel troubleshooting reference.

ALSO READ: How to Pin a Row in Excel

⚠️ Troubleshooting Common Issues

  • Macros won’t run: Ensure the file type supports macros (e.g., .xlsm or .xlsb) and that macros are enabled in the Trust Center.
  • Repeated security warnings: Include the file’s folder in Trusted Locations.
  • Macros are disabled in shared workbooks: to enable macro capability, go to a normal workbook.

FAQ: How to Enable Macros in Excel

1. Why is the “Enable Content” button not available?

  • The file may already be in a trusted place so that macros are enabled automatically.
  • System policies may have blocked the macro from getting executed. Discuss with your IT administrator.

2. Why Do Macros Still Get Disabled After Enabling?

Make sure the worksheet is saved as a macro-enabled workbook (.xlsm).
Check to see whether macros are disabled by group policy or antivirus software.

3. Can I enable macros on a temporary basis?

Yes, macros may be enabled for a single session by choosing Enable Content under the Security Warning banner.

TAGGED:Enable VBA macrosExcel for beginnersExcel macros tutorialExcel security settingsExcel TipsHow to enable macros in ExcelMacro-enabled Excel filesMicrosoft Excel VBA
Share This Article
Facebook Twitter Copy Link Print
Share
Previous Article How to subtract in Excel How to Subtract in Excel
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
Most Popular
how to enable macros in Excel
How to Enable Macros in Excel
January 5, 2026
How to subtract in Excel
How to Subtract in Excel
December 27, 2025
How to pin a row in Excel
How to Pin a Row in Excel
December 27, 2025
XLOOKUP
How to Use XLOOKUP in Excel: Step-By-Step + Examples (2026)
December 23, 2025
Excel VBA: A Beginner’s Guide to Automating Tasks and Saving Time
VBA Excel: A Beginner’s Guide to Automating Tasks and Saving Time
December 23, 2025

You Might Also Like

Percentage Formula in Excel: 3 Ideal Methods
Tips & TricksTutorial

Percentage Formula in Excel: 3 Ideal Methods

5 Min Read
How to Recover Unsaved Excel File
MS ExcelTutorial

How to Recover Unsaved Excel File

5 Min Read
How to Create a Line Chart in Excel
Tips & TricksTutorial

How to Create a Line Chart in Excel

3 Min Read
How to Make a Pie Chart in Excel
Tips & TricksTutorial

How to Make a Pie Chart in Excel

5 Min Read
XcelNote

“Unlock the Power of Excel: Your Ultimate Tutorial Hub” is your go-to destination for mastering Microsoft Excel. 

Quick links

  • Disclaimer
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions
Go to mobile version
Welcome Back!

Sign in to your account


Lost your password?