There are some scripts that can be run on Microsoft Excel files using something called Macros. These can be extremely useful, but they can also be dangerous. So if you need them for a file, then you may be wondering how to enable macros in Excel for Office 365.
Macros in Microsoft Excel are commonly used to automate certain processes. The macro is a series of actions that are performed on a spreadsheet, typically saving a large amount of time.
But macros can be used maliciously, and there is a risk to enabling macros on a spreadsheet that you have received from an unknown person. Due to this risk, Excel disables macros by default. But if you have a file with macros, and you trust the sender, or know the file to be safe, then you can continue below and see how to enable macros in Microsoft Excel.
How to Enable Excel 365 Macros
- Open Excel.
- Click File.
- Choose Options.
- Select Trust Center.
- Click Trust Center Settings.
- Choose the Macro Settings tab.
- Select your Macro security level, then click OK.
Our guide continues below with additional information on enabling Excel 365 macros, including pictures of these steps.
How to Activate Macros in Excel (Guide with Pictures)
The steps in this article were performed in the Windows desktop version of Excel for Office 365. The first part of this article provides a quick overview of how to enable macros in Excel. For additional information on how to change how Excel handles macros in the future, including pictures, keep scrolling, or click here to jump to that part of the article.
When you open an Excel file with macros, you should see a notification above the spreadsheet that looks like the image below. Clicking that Enable Content button will let the macros run in the spreadsheet.
Alternatively, rather than clicking that button, you could click the File tab, then the Enable Content button in the Security Warning section and always enable content in this file.
Or, finally, you could select Advanced Options where you are given the choice to only allow the macros for this session.
If you want to change the macro settings in Excel for all future files, then you can do so with the following steps.
How to Enable Macros in Excel for Future Files (Guide with Pictures)
Step 1: Open Microsoft Excel.
Step 2: Click the File tab at the top-left of the window.
Step 3: Choose Options at the bottom of the left column.
Step 4: Select Trust Center in the left column of the Excel Options window.
Step 5: Click the Trust Center Settings button.
Step 6: Choose the Macro Settings tab.
Step 7: Choose the desired macro setting option, then click the OK button.
Excel 365 Macros Settings
The Macro setting options in Excel for Office 365 are:
- Disable all macros without notification – Excel simply blocks all macros without giving you the opportunity to choose whether to run them or not.
- Disable all macros with notification (this is probably your current setting if you’ve never changed it) – Blocks macros, but gives you the option to run them by showing a notification with an Enable Content button.
- Disable all macros except digitally signed macros – All macros are blocked, except those that have been created by a Microsoft trusted publisher
- Enable all macros (not recommended; potentially dangerous code could run) – Any macro in any spreadsheet will run. It’s probably best not to use this option as it could potentially harm both your Excel installation and, potentially, your entire computer.
Do you have a spreadsheet with a VLOOKUP formula in it, but you’re seeing a bunch of #N/A? Find out how to adjust your formula and display a 0 instead if it’s affecting other formulas.
Matthew Burleigh has been writing tech tutorials since 2008. His writing has appeared on dozens of different websites and been read over 50 million times.
After receiving his Bachelor’s and Master’s degrees in Computer Science he spent several years working in IT management for small businesses. However, he now works full time writing content online and creating websites.
His main writing topics include iPhones, Microsoft Office, Google Apps, Android, and Photoshop, but he has also written about many other tech topics as well.
Disclaimer: Most of the pages on the internet include affiliate links, including some on this site.