How To Turn On Macros In Excel

A practical step-by-step guide to how to turn on macros in excel, including preparation, instructions, common issues, tips, and next steps.

Published 2026-07-24

How To Turn On Macros In Excel cover image

How To Turn On Macros In Excel

This guide explains how to approach how to turn on macros in excel, including the preparation, practical steps, common mistakes, and final checks that help you finish with confidence.

5-10 mins Time needed
Easy Difficulty
Security risks Watch out for

Before You Start

Check first: Always be very cautious when enabling macros from files you don't fully trust or recognise. Malicious macros can harm your computer or compromise your data. Only enable macros if you are certain the source is reputable and safe.

Step-by-Step Instructions

Quick Reference

Common Problems When You Turn On Macros In Excel

Even after adjusting your settings, you might encounter some common issues. Here’s how to troubleshoot them:

Problem 1: Macros Still Not Running, No Security Warning

If you've enabled macros with a notification, but you open a macro-enabled file and nothing happens – no macros run, and no yellow security bar appears – it often means Excel is still set to disable macros silently.

  • Check your Trust Centre settings again: Go to File > Options > Trust Centre > Trust Centre Settings > Macro Settings. Ensure you have selected 'Disable all macros with notification' or a less restrictive option.
  • File Type: Make sure the file you're trying to run macros from is actually a macro-enabled file, saved with the .xlsm extension. Standard .xlsx files cannot contain macros. If it's an .xlsx file, you'll need to save it as an .xlsm file first (File > Save As > Excel Macro-Enabled Workbook).

Problem 2: The Security Warning Keeps Appearing for Trusted Files

You might be frustrated if you constantly have to click 'Enable Content' for files you use every day and know are safe.

  • Add to Trusted Locations: For files you absolutely trust and use regularly, you can add the folder they're stored in to Excel's Trusted Locations. Go to File > Options > Trust Centre > Trust Centre Settings > Trusted Locations. Click 'Add new location...' and browse to the folder. Tick 'Subfolders of this location are also trusted' if applicable. Macros in these folders will run without warnings.
  • Digitally Sign Macros: If you develop your own macros, consider digitally signing them. This allows users to enable them more easily if they trust your digital signature. This is a more advanced step but can be useful in controlled environments.

Problem 3: Cannot Find 'Trust Centre' or 'Options'

The names and locations of menus can slightly change between different versions of Excel.

  • Older Excel Versions: If you're using Excel 2007, the 'File' tab is replaced by the 'Office Button' (a round button with the Microsoft Office logo) in the top-left corner. Click this, then look for 'Excel Options' at the bottom of the menu. The rest of the navigation should be similar.
  • Check for Updates: Ensure your Excel is up to date. Sometimes, very old versions might have different menu structures.

Problem 4: My Own Recorded Macro Isn't Working

If you've recorded a macro but it doesn't do anything when you try to run it, or it gives an error.

  • Save as .xlsm: When you record a macro, Excel often creates it in your Personal Macro Workbook (PERSONAL.XLSB) or the currently active workbook. If it's the latter, you absolutely must save that workbook as an Excel Macro-Enabled Workbook (.xlsm). If you save it as a regular .xlsx file, all your macros will be lost.
  • Macro Security Settings: Ensure your macro security settings are not preventing your own macros from running. Use 'Disable all macros with notification' at a minimum, and click 'Enable Content' if prompted.
  • Developer Tab: Make sure the Developer tab is visible (Step 8 in the main guide) so you can easily access the 'Macros' button to run or edit your recorded macros.

Advanced Tips for How To Turn On Macros In Excel

Once you're comfortable with the basics, these tips can help you manage macros more effectively and securely.

1. Utilise Trusted Locations for Specific Folders

Instead of broadly enabling macros, designating 'Trusted Locations' is a superior security practice. By adding a specific network share or local folder to this list, any macro-enabled files stored there will automatically run without security warnings, regardless of your general macro security settings. This is ideal for shared team projects or your personal macro library.

  • Go to File > Options > Trust Centre > Trust Centre Settings > Trusted Locations.
  • Click 'Add new location...' and browse to the desired folder.
  • It's highly recommended to tick the box for 'Subfolders of this location are also trusted' if you have nested folders containing macro files.
  • Caution: Only trust locations where you have full control over the content or are absolutely certain that no malicious files will be introduced.

2. Understand Digitally Signed Macros

For organisations or individuals who frequently share macro-enabled workbooks, digital signatures provide an enhanced layer of trust. A digital signature verifies the identity of the macro creator and confirms that the macro hasn't been tampered with since it was signed. Users can then choose to trust a publisher's digital signature, allowing all macros from that publisher to run without individual approval.

  • This often requires obtaining a digital certificate from a certification authority.
  • In Trust Centre Settings, you can choose 'Disable all macros except digitally signed macros' to enforce this higher security standard.

3. Use the Personal Macro Workbook (PERSONAL.XLSB)

If you create macros that you want to use in any Excel workbook you open, save them in your Personal Macro Workbook. This hidden workbook opens automatically with Excel and makes your macros globally available. This is much more efficient than copying macros into every new file.

  • To record a macro into PERSONAL.XLSB, go to the Developer tab > Record Macro, and in the 'Store macro in:' dropdown, select 'Personal Macro Workbook'.
  • Remember to save PERSONAL.XLSB when prompted upon closing Excel if you've added new macros to it.

4. Configure Add-ins for Advanced Macro Management

Some powerful macro tools or custom functions come packaged as Excel Add-ins (.xlam files). These are essentially macro-enabled workbooks that load automatically when Excel starts, making their functions available across all your open workbooks without needing to open the source file manually.

  • To manage Add-ins, go to File > Options > Add-Ins.
  • Select 'Excel Add-ins' from the 'Manage' dropdown at the bottom and click 'Go...'.
  • You can then browse for .xlam files to load them into Excel. Ensure you only load Add-ins from trusted sources.

5. Review Macro Code (VBA Editor)

If you're unsure about a macro's safety, and you have some basic programming understanding, you can actually look at the code. This is an advanced tip and requires caution, but it's the ultimate way to understand what a macro does.

  • With the Developer tab enabled, click 'Visual Basic' (or press Alt + F11) to open the VBA editor.
  • In the 'Project Explorer' pane (usually on the left), you can navigate through the modules, forms, and sheets within your workbook to find the macro code.
  • Look for suspicious commands, file operations, or network communication that could indicate malicious activity.

How To Turn On Macros In Excel FAQ

Q1: What exactly are macros in Excel and why are they useful?

Macros are essentially recorded or written sets of instructions that automate repetitive tasks in Excel. For example, you could have a macro that automatically formats a report, sorts data, or generates specific charts with a single click. They are incredibly useful for saving time, reducing errors, and making complex spreadsheets easier to use, especially for tasks you perform often. They turn multi-step processes into instant actions.

Q2: Is it truly dangerous to enable all macros?

Yes, enabling all macros without any security warnings (the "Enable all macros" option) is genuinely dangerous and strongly discouraged. Macros, while powerful, can be used to run malicious code on your computer. This code could steal your personal information, delete files, install viruses, or even take control of your computer. If you enable all macros, you're essentially telling Excel to trust every piece of code in every workbook you open, regardless of its source or intent. Always choose an option that provides notifications or restricts macros to trusted sources.

Q3: Why can't I see the Developer tab in Excel?

The Developer tab is hidden by default in Excel to keep the interface clean for most users who don't need to create or edit macros. To make it visible, you need to enable it through Excel's customisation settings. Go to File > Options > Customise Ribbon, then on the right side, tick the checkbox next to 'Developer' under 'Main Tabs' and click OK. Once enabled, it will appear between the 'View' and 'Help' tabs in your Excel ribbon.

Q4: What is the difference between an .xlsx file and an .xlsm file?

The main difference lies in their ability to store macros. An .xlsx file is a standard Excel workbook format that cannot contain VBA macros. It's used for spreadsheets that only hold data, formulas, and formatting. An .xlsm file, on the other hand, is an Excel Macro-Enabled Workbook. This file type can store VBA macros alongside your data and formulas. If you create or use macros, you must save your workbooks as .xlsm files; otherwise, all your macros will be lost. Always save as .xlsm if your workbook includes any macro code.

Q5: How can I tell if a file contains macros before enabling them?

The easiest way to tell is by the file extension: .xlsm files indicate they are macro-enabled. If you receive an .xlsx file but it claims to have macros, it's likely an error or the macros have been stripped out. When you open an .xlsm file with your security set to "Disable all macros with notification," Excel will display a yellow security warning bar at the top, explicitly stating that macros have been disabled and offering an "Enable Content" button. This is your cue that the file contains active code that you need to be aware of.

Final Checklist for How To Turn On Macros In Excel

Before you consider yourself fully set up, run through this quick checklist to ensure everything is in order and you're working safely:

  • Macro Security Level Confirmed: Have you set your macro security to 'Disable all macros with notification' (recommended) or another appropriate level in the Trust Centre?
  • Understood the Risks: Do you fully understand the security implications of enabling macros, especially from unknown sources?
  • Trusted Locations Configured (if needed): If you frequently use trusted macro files, have you added their folders to your Trusted Locations?
  • Developer Tab Enabled (if needed): If you plan to create or edit macros, is the Developer tab visible in your Excel ribbon?
  • Macro-Enabled File Saved Correctly: Are your own macro-containing files saved with the .xlsm extension?
  • Test Macro Run: Have you successfully opened a macro-enabled file and either clicked 'Enable Content' or had its macros run automatically (if from a Trusted Location)?
  • Regular Review of Settings: Do you know how to access and review your macro settings if you need to adjust them in the future?