How to enable and disable macros on Excel

The following article will guide readers how to enable and disable macros in Excel 2007, 2010, 2013 and 2016.

Instructions for enabling and disabling macros on Excel

Enable macros in Excel

How to enable macros in Excel 2013-2016

How to enable and disable macros on Excel

Here's what to do, if the above error message appears while opening a macro-enabled file (XLS, XSLM, XLSB):

1. Click the File tab (top left tab in the Excel window).

2. Click the Excel Options button.

3. Click Trust Center in the left menu.

4. Click Trust Center Settings in the right window.

5. In the newly opened window, click Macro Settings in the left menu.

6. Select Enable all macros .

7. Click OK.

8. Click OK again.

9. Close all Office applications and restart Excel.

How to enable and disable macros on Excel

How to enable macros in Excel 2010

How to enable and disable macros on Excel

To enable macros in Excel 2010, follow these instructions:

1. Click the File tab (top left tab in the window).

How to enable and disable macros on Excel

2. Click the Excel Options button.

How to enable and disable macros on Excel

3. Click Trust Center in the left menu.

How to enable and disable macros on Excel

4. Click Trust Center Settings in the right window.

How to enable and disable macros on Excel

5. In the newly opened window, click Macro Settings in the left menu.

How to enable and disable macros on Excel

6. Check the Enable all macros (not recommended; potentially dangerous code can run) option .

How to enable and disable macros on Excel

How to enable macros in Excel 2007

Click the Office button (top left button in the window) and follow the same procedure as above.

Disable macros in Excel

1. Disable all macros without notification

Assuming you never use any macros and want to disable them, you can select this option. The next time you open a macro-enabled Excel workbook, you won't see any notifications about macros.

However, you can still open the Visual Basic editor and inspect the code. But the macros in the file are all in Design mode.

How to enable and disable macros on Excel
The macros in the file are all in Design mode.

When you press the button F5on your keyboard or click the Run Sub button on the toolbar, you will see information like this image.

How to enable and disable macros on Excel
Notification when pressing F5 on the keyboard or clicking the Run Sub button

The macros in this file are all disabled and you cannot run any of them. This is the effect of the first option in the macro settings.

2. Disable all macros with notification

By default, Excel will select this option for macro settings. And the difference between this option and the previous option is the message. In this option, when you open a macro-enabled workbook, you will see a security warning. And there is also an Enable Content button .

How to enable and disable macros on Excel
Enable Content button in Security Warning

If you open the Visual Basic editor directly and run the macro, you will see the message that macros are disabled again. But now you are sure that the macro is safe and can open the file again. Then click the Enable Content button under Security Warning. Therefore, the macros in this macro-enabled file are available. Moreover, the next time you open the file, you will not see this warning. Excel is smart enough to record your actions and it remembers that this file is safe.

3. Disable all macros except digitally signed macros

This is the third option. This option is pretty self-explanatory. When you select this option, all macros will be disabled. But there are certain macros that exist and they have digital signatures. These macros are considered safe. So with this option, you can run digitally signed macros on your computer.

Good luck!

See also:

Sign up and earn $1000 a day ⋙

Leave a Comment

How to fix #SPILL! error in Microsoft Excel

How to fix #SPILL! error in Microsoft Excel

The #SPILL! error in Excel is quite common and it is quite simple to fix. Here is how to fix the #SPILL! error easily in Excel.

How to use the FILTER function in Excel

How to use the FILTER function in Excel

If you regularly work with data sets in Excel, you know how important it is to be able to quickly find the information you need.

Why Checkbox is an underutilized Excel feature?

Why Checkbox is an underutilized Excel feature?

On the surface, Excel Checkboxes seem like a very simple feature - which is probably why they are often overlooked.

Why Excel is the only project management tool you need?

Why Excel is the only project management tool you need?

Many people have tried many project management tools, but still come back to Excel for project management. While it may not be perfect for everyone, it is a simple, yet effective solution that you already know how to use.

Microsoft allows users to use Office applications on Windows for free, but with some limitations.

Microsoft allows users to use Office applications on Windows for free, but with some limitations.

Microsoft recently raised the price of its Microsoft 365 subscription, justifying the change by adding more AI experiences to the service.

TRUNC Function: How to remove decimals and shorten numeric values

TRUNC Function: How to remove decimals and shorten numeric values

There are different ways in Excel to remove decimals and shorten numeric values. In this article, Quantrimang.com will explain how to use the TRUNC function and point out what makes it different from other techniques.

SUBTOTAL Function: Calculates the total value of a filtered list in Excel

SUBTOTAL Function: Calculates the total value of a filtered list in Excel

The sum function when filtering data is very important for Microsoft Excel users. This article will summarize for you how to filter and calculate sum in Excel using Subtotal.

How to Export Airtable to Excel and Google Sheets

How to Export Airtable to Excel and Google Sheets

Airtable lets you create and share relational databases easily. Export your Airtable data to Google Sheets or Excel to enjoy the benefits of advanced charts and data visualization.

Effective ways to use ChatGPT in Excel

Effective ways to use ChatGPT in Excel

Curious about how ChatGPT can enhance your Excel experience? Here are some tips for using ChatGPT in Excel.

How to use the WORKDAY function in Microsoft Excel

How to use the WORKDAY function in Microsoft Excel

In Microsoft Excel, the WORKDAY function is a date and time function and its purpose is to return the date before and after the specified number of working days. Working days do not include weekends or any days defined as holidays.

Why are so many people stopping using Google Sheets and going back to Excel?

Why are so many people stopping using Google Sheets and going back to Excel?

For a while, Google Sheets lured people away from Excel. But many people came back after realizing that Google Sheets is far from beating Excel.

How to use the TREND function in Excel

How to use the TREND function in Excel

You can calculate and visualize trends in Excel using the TREND function. Here's how to use the TREND function in Microsoft Excel.

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel. Why do some Excel documents not display data or contain blank pages when printed? Below are the reasons

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar, How to pin Office files to the taskbar icon on Windows 11? Invite

Difference between regular TV and Smart TV

Difference between regular TV and Smart TV

Smart TVs have really taken the world by storm. With so many great features and the ability to connect to the Internet, technology has changed the way we watch TV.

Why doesnt the freezer have a light but the refrigerator does?

Why doesnt the freezer have a light but the refrigerator does?

Refrigerators are familiar appliances in families. Refrigerators usually have 2 compartments, the cool compartment is spacious and has a light that automatically turns on every time the user opens it, while the freezer compartment is narrow and has no light.

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

Wi-Fi networks are affected by many factors beyond routers, bandwidth, and interference, but there are some smart ways to boost your network.

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

If you want to go back to stable iOS 16 on your phone, here is the basic guide to uninstall iOS 17 and downgrade from iOS 17 to 16.

What happens to the body when you eat yogurt every day?

What happens to the body when you eat yogurt every day?

Yogurt is a great food. Is it good to eat yogurt every day? What will happen to your body when you eat yogurt every day? Let's find out together!

Which type of rice is best for health?

Which type of rice is best for health?

This article discusses the most nutritious types of rice and how to maximize the health benefits of whichever rice you choose.

How to wake up on time in the morning

How to wake up on time in the morning

Establishing a sleep schedule and bedtime routine, changing your alarm clock, and adjusting your diet are some of the measures that can help you sleep better and wake up on time in the morning.

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim Tips for Beginners

Rent Please! Landlord Sim is a simulation mobile game on iOS and Android. You will play as a landlord of an apartment complex and start renting out an apartment with the goal of upgrading the interior of your apartments and getting them ready for rent.

Latest Bathroom Tower Defense Codes and How to Enter Codes

Latest Bathroom Tower Defense Codes and How to Enter Codes

Get Bathroom Tower Defense Roblox game codes and redeem them for exciting rewards. They will help you upgrade or unlock towers with higher damage.

Structure, symbols and operating principles of transformers

Structure, symbols and operating principles of transformers

Let's learn about the structure, symbols and operating principles of transformers in the most accurate way.

4 Ways AI Is Making Smart TVs Better

4 Ways AI Is Making Smart TVs Better

From better picture and sound quality to voice control and more, these AI-powered features are making smart TVs so much better!

Why ChatGPT is better than DeepSeek

Why ChatGPT is better than DeepSeek

DeepSeek initially had high hopes. As an AI chatbot marketed as a strong competitor to ChatGPT, it promised intelligent conversational capabilities and experiences.

Meet Fireflies.ai: The Free AI Secretary That Saves You Hours of Work

Meet Fireflies.ai: The Free AI Secretary That Saves You Hours of Work

It's easy to miss important details when you're jotting down other essentials, and trying to take notes while chatting can be distracting. Fireflies.ai is the solution.

How to raise Axolotl Minecraft, tame Minecraft Salamander

How to raise Axolotl Minecraft, tame Minecraft Salamander

Axolot Minecraft will be a great assistant for players when operating underwater if they know how to use them.

A Quiet Place: The Road Ahead PC Game Configuration

A Quiet Place: The Road Ahead PC Game Configuration

A Quiet Place: The Road Ahead's configuration is rated quite highly, so you will need to consider the configuration before deciding to download.