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

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.

Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

Filtering unique values ​​and deleting duplicate data is a basic operation that everyone needs to know when using Excel. Join us to learn how to do it in Excel!

How to access your Chromebooks clipboard manager

How to access your Chromebooks clipboard manager

The ability to copy and paste is a basic, simple function that any operating system has and must have.

How to take a screenshot on OnePlus phones

How to take a screenshot on OnePlus phones

OnePlus phones have three ways to take screenshots, including taking scrolling screenshots without additional software.

How to Use Start11 to Completely Overhaul Windows 11

How to Use Start11 to Completely Overhaul Windows 11

The tool used to customize Windows 11, Start11, offers a free trial and then charges a one-time fee of $9.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

Top smartphones that emit the most dangerous radiation today

Top smartphones that emit the most dangerous radiation today

Stocklytics has released a list of the top smartphones with the highest radiation levels. Accordingly, Xiaomi and Samsung are the companies with the most smartphones with the highest radiation levels.

5 Best Google Sheets Add-ons to Make Data Analysis Easier

5 Best Google Sheets Add-ons to Make Data Analysis Easier

Google Sheets is a powerful tool for data analysis, but sometimes you need more power. There are plenty of add-ons that can speed up your spreadsheets and take your data processing to the next level.

The best way to scan and digitize old photos

The best way to scan and digitize old photos

Your precious old photos won't last forever. If you want to preserve your memories from time, damage, and dust, you need to bring them into the digital age.

Instructions to change Messenger color on phone, computer

Instructions to change Messenger color on phone, computer

Messenger has different chat themes for you to set for your chat. In addition to artistic chat themes or specific topics, you can also choose a color theme for Messenger.

How to play the Executioner lineup DTCL season 14

How to play the Executioner lineup DTCL season 14

The Executioner in season 14 stands out with his ability to deal powerful critical damage.

Latest X-Wukong Dai Chien Tam Gioi Code and how to redeem code

Latest X-Wukong Dai Chien Tam Gioi Code and how to redeem code

X-Wukong Dai Chien Tam Gioi gives players Gold, Linh Thach, Hon Ngoc... and many other attractive items through newbie giftcodes and event codes.

Latest Eternal Ember Code and How to Enter Code

Latest Eternal Ember Code and How to Enter Code

Eternal Ember Codes will give gamers currency and loot. Below are the Eternal Ember codes for you to enter and redeem, remember to follow this article for more code updates.

How to add a shared mailbox in Outlook

How to add a shared mailbox in Outlook

Shared mailboxes in Outlook make it easier for people to interact, view content, and share work together.

How to adjust the volume of each Chrome tab up to 600%

How to adjust the volume of each Chrome tab up to 600%

Volume Master is an extension installed on the Chrome browser that can adjust the volume of each separate tab on the browser, up to 600%.

Opera introduces some cool new keyboard shortcuts for the Opera GX browser

Opera introduces some cool new keyboard shortcuts for the Opera GX browser

Opera has introduced some new keyboard shortcuts for the Opera GX browser that bring cat pictures and other relaxing things to you with just a few keystrokes.

Ways to take care of yourself in the fall to stay happy and love life

Ways to take care of yourself in the fall to stay happy and love life

Fall is a great time to reset, slow down, and embrace change. Here are some ways to take care of yourself so you can live a happy, healthy life.