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

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

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save an Excel file on Windows. If you can't save the Excel file, don't worry too much. Below are ways to fix the error of not being able to save the above Excel file

How to insert a picture into a cell using VBA in Excel

How to insert a picture into a cell using VBA in Excel

How to insert a picture into a cell using VBA in Excel, You can easily insert pictures into Excel spreadsheets and edit them with macro code. Here's how to insert images

How to enable auto-capitalization of the first letter of a sentence in Excel

How to enable auto-capitalization of the first letter of a sentence in Excel

How to enable auto-capitalization of the first letter of a sentence in Excel, Turning on the automatic-capitalization of the first letter of a sentence in Excel will save you a lot

How to calculate seniority work on Excel spreadsheets

How to calculate seniority work on Excel spreadsheets

Through this tutorial, WebTech360 will guide you how to calculate the seniority of a list of employees in the company via Microsoft Excel spreadsheet or WPS Spreadsheets.

IF and IFS functions in Excel: Usage and specific examples

IF and IFS functions in Excel: Usage and specific examples

The IF function in Microsoft Excel is one of the most commonly used logical functions. In the simplest sense, the IF function will return a result based on one or several input comparison data.

18 mysterious and strange places appearing on Google Earth that make people surprised

18 mysterious and strange places appearing on Google Earth that make people surprised

The vast Earth has many mysterious lands that humans have not known and have not set foot on. Nowadays, thanks to the Google Earth tool, anyone can search and explore strange and mysterious places on this planet.

14 Best New AI Features Adobe Revealed at Adobe Max 2024

14 Best New AI Features Adobe Revealed at Adobe Max 2024

Adobe Max 2024 has launched a series of exciting updates, introducing powerful new AI tools to Adobe's toolset.

Why do cats cover their faces when they sleep?

Why do cats cover their faces when they sleep?

There are many different explanations for why cats cover their faces while sleeping, from trying to keep warm to protecting their whiskers. Here's the answer to the question of why cats cover their faces while sleeping.

Quiz: How many meters is 1 foot?

Quiz: How many meters is 1 foot?

How many meters is 1 foot? If you don't know, let's find the answer together!

How many kilometers is a light year, how many earth years?

How many kilometers is a light year, how many earth years?

How many kilometers are 120 light years? How many kilometers are 40 light years? Let's find out together about a light year to find the answer!

Best time to post Instagram Reels

Best time to post Instagram Reels

The timing of your Instagram Reels can make the difference between massive engagement and dead silence. Let’s find out the best times to post on Instagram Reels.

Status about dogs, funny and humorous captions about pets

Status about dogs, funny and humorous captions about pets

There are many funny captions about dogs on the Internet. This article will gather for you the funniest, most humorous, and most interesting poems about dogs.

How to change NAT type on Windows 11/10

How to change NAT type on Windows 11/10

You will have the best gaming experience if you use Open NAT or at least Moderate NAT. That is why you need to learn how to change the NAT type.

8 Features Apple Notes Is Still Missing

8 Features Apple Notes Is Still Missing

After several updates, Apple Notes still lacks some features that could make the app even better.

4 Practical Uses of Password Managers You Didnt Know About

4 Practical Uses of Password Managers You Didnt Know About

You probably know that password managers are great for storing your online logins. But did you know they have many other great uses?

What do the heart colors on Messenger mean?

What do the heart colors on Messenger mean?

With the Messenger heart icon, you can choose different colors to use for different situations to express what you want to say to the other person.

How to Message Meta AI in WhatsApp Groups

How to Message Meta AI in WhatsApp Groups

Not only can you use Meta AI with individual WhatsApp messages, you can now send Meta AI messages in WhatsApp groups.

NVIDIA CEO: AI will replace humans in specific jobs with 1000 times higher productivity

NVIDIA CEO: AI will replace humans in specific jobs with 1000 times higher productivity

The concept of artificial intelligence - AI is becoming more and more popular, which means that this superior technology is gradually being effectively deployed in many fields as well as in all aspects of modern life.

AI Robots Can Be Jailbroken, and the Consequences Will Be Dire

AI Robots Can Be Jailbroken, and the Consequences Will Be Dire

Researchers at Penn Engineering (USA) are said to have discovered previously unidentified security vulnerabilities in a number of AI-controlled robotic platforms.

Difference between WAN port and LAN port

Difference between WAN port and LAN port

If you look at your wireless router, you may see the abbreviations LAN and WAN, usually located next to some ports on the device. LAN stands for Local Area Network and WAN stands for Wide Area Network. So what is the difference between these two types of ports? Let's find out with Quantrimang through the following article!