How to Enable Macros in Microsoft Excel

Enable macros and make your tasks easier.

Advertisement
By Aman Rashid | Updated: 20 July 2020 18:00 IST
Highlights
  • Macros let you automate tasks
  • Macros are disabled by default
  • Macros are powerful, but they have security risks too

Keeping macros always enabled is not recommended

Microsoft Excel is by far the most well-known app out there for creating spreadsheets. Now Excel files look rather innocuous at first with rows and columns full of data, but seasoned Excel users know that the app has some insanely powerful tools that perform some extremely advanced functions. One of the ways to do this is by enabling macros in Excel to reduce manual data entry and to let Excel do what it's best at. In this guide, we'll tell you what macros are, how to enable macros in Microsoft Excel and how to use them to enhance your workflow.

What is a macro in Microsoft Excel

Before we tell you how to enable macros, it is important to know what a macro is in Microsoft Excel. In simple terms, a macro lets you automate repeated tasks such as calculating the sum total of marks of students in different subjects. For instance, you have a spreadsheet consisting of a list of students with their scores listed in different subjects. Now, instead of calculating the total marks of each student one by one, you can record a macro by performing the task on one student and then you can easily automate the same thing with other students by simply running the macro.

Advertisement

Security risks of running macros

Of course, macros are really useful and they make our life easier by automating repeated tasks yet there are huge security risks involved while running macros from unverified sources. While it should be absolutely fine running a macro that you created yourself, the same can't be said for the ones you download online. You should understand that a malicious macro can even delete important files stored on your computer. There's always a security risk involved when you turn on the enable all macros setting. That's why it is always advised to enable macros whenever they are needed and naturally you should keep them disabled when not in use.

How to enable macros in Microsoft Excel

Now, let us learn how to enable macros in Microsoft Excel. Follow these steps.

  1. Considering you have already created a spreadsheet on Excel, click File and go to Options.
  2. Click Customize Ribbon and under Main Tabs, check Developer. Doing this, the Developer tab will appear on the main screen.
  3. So, once this is done, click Trust Center > Trust Center Settings > Macro Settings. This is where you choose the fourth option, Enable all macros that always let you run macros. However, make sure that whenever you do not need to for using macros, choose the second option: Disable all macros with notification.
  4. Now, go back to the main page and click Developer.
  5. After this, you click on Record Macro > enter the macro name > enter its shortcut key > choose where you want to store the macro i.e. in the current workbook or as a common macro in your Personal Workbook > Hit OK.
  6. Next, you can start recording the commands. Once done, hit Stop Recording.
  7. Similarly, if you're using MS Excel on a Mac, you need to repeat the same steps mentioned earlier. Also, the good part about enabling macros while using Excel on a Mac is that the Developer tab is already present in the toolbar up top. Unlike Windows 10, you don't need to dig into settings and enable it specifically.
  8. So now, whenever you run the macro by hitting the assigned shortcut key while working on your spreadsheet, the same task will be performed that you recorded earlier. You can do this as many times as you want.
  9. To check all your stored macros, you will have to click Macros. Once you do this, you can access a bunch of other settings related to macros such as edit, delete, run etc.
  10. Besides, to quickly access the security settings for macros, click Macro Security and as we suggested that once you are done using macros, check the second option.

That's how you can enable macros in Microsoft Excel. Which are your favourite macros? Let us know in the comments. 

For more tutorials, visit our How To section.


Poco M2 Pro: Did we really need a Redmi Note 9 Pro clone? We discussed this on Orbital, our weekly technology podcast, which you can subscribe to via Apple Podcasts, Google Podcasts, or RSS, download the episode, or just hit the play button below.

Affiliate links may be automatically generated - see our ethics statement for details.
 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. HMD 2660 Flip Senior Edition Launched With AI Companion Mary, 4G Support
  2. Oppo Enco X4 TWS Earbuds Launched in India With Up to 53 Hours of Battery Life
  3. Oppo Reno 16 Price in India Rises, New 128GB Model Launched
  4. Acer TravelLite TL44-53M-G2 Launched in India With Intel Core Ultra Series 3 Chip
  5. Vivo Y600 With 10,000mAh Battery Revealed; Launch Date Set for October 30
  6. iOS 27.2 Update: Six iPhone Apps Set to Get New Features Next Week
  7. Oppo Pad Mini Launched in India With These Features
  8. Redmi Book 2027 Series Launch Date Announced
  9. Samsung W27 Foldable to Reportedly Launch on This Date in China
  10. Oppo Find X10 Series With Triple 200-Megapixel Cameras Arrive in India
  1. Meta Ordered to Pay $25 Billion Penalty in Data Privacy Case
  2. Oppo Enco X4 TWS Earbuds Launched in India With Hi-Res Audio, Up to 53 Hours of Total Battery Life
  3. Cyberpunk 2077 Gets New Quests, Gameplay Features and Mod Support With Edgerunners 2 Update
  4. CoinDCX Dismisses Second Breach Claims as Blockchain Investigators Examine Wallet Transfers
  5. HMD 2660 Flip Senior Edition Launched With AI Companion Mary, Removable Battery, 4G Support: Price, Features
  6. Lenovo Yoga Pro 9n, Yoga 9n 2-in-1 With Nvidia RTX Spark Launched in India: Price, Specifications
  7. Oppo Pad Mini Launched in India With 2.5K OLED Screen, 8,000mAh Battery: Price, Specifications
  8. Oppo Find X10 Pro Max Launched in India With Triple 200-Megapixel Cameras, Dimensity 9600 Pro SoC, Oppo Find X10 Tags Along: Price
  9. Google Cloud Adds GPT-6 Astra, GPT-6.1 Sol, GPT-6 Luna Models to Model Garden
  10. China Demands Return of 61,800 BTC Seized in UK Fraud Investigation
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.