Computer >> Computer tutorials >  >> Software >> Office

How to Enable Disabled Macros in Excel – Step‑by‑Step Guide

The following dataset contains the income statements of several people. Note the macro settings have been greyed out.

How to Enable Disabled Macros in Excel – Step‑by‑Step Guide

How to Go from Disabling to Enabling Macros

Steps:

  1. Click Home and replicate the following dataset.
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide
  2. Enable Macros by clicking FileOptionsTrust CenterTrust Center SettingsMacro SettingsEnable VBA macros (not recommended, potentially dangerous code can run).
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide
  3. If all options are greyed-out (so that when you click one, nothing happens), proceed to Step 4.
  4. Open the Windows Run Dialog Box by pressing the Windows+R keys simultaneously.
  5. In the Run dialog box, type MSC, then press OK.
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide
  6. When the Local Group Policy Editor menu pops up, click User Configuration → Administrative Templates, then return to your Excel worksheet.
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide
  7. Return to the Trust Center.
  8. Repeat Step 2 until you get to Trust Center Settings, then click Trusted Locations (marked 1 on the following screenshot).
  9. Click the first option (marked 2), then OK.
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide
  10. Enable any and all greyed out macro settings.
  11. Restart your PC.
    How to Enable Disabled Macros in Excel – Step‑by‑Step Guide

How to Go from Enabling to Disabling Macros

  1. Repeat Step 2 until you get to Trust Center Settings, then click Trusted Locations (marked 1 on the following screenshot).
  2. Click the second option Disable VBA macros with notification (marked 2), then OK.
  3. Restart your PC.

How to Enable Disabled Macros in Excel – Step‑by‑Step Guide

Bottom Line

You can pop up the Microsoft Visual Basic for Applications window by pressing the Alt+F11 keys simultaneously.

If the Developer tab is not visible in your ribbon, go to File → Option → Customize Ribbon

Download Free Practice Workbook

Related Articles

  • [Fixed!]: Unable to Enable Macros in Excel
  • [Solve:] Cannot Edit a Macro on a Hidden Workbook
  • Excel Macro Security
  • [Fixed!] Macros Not Working in Excel
  • [Fixed] Excel Macros Enabled But Not Working
Get FREE Advanced Excel Exercises with Solutions!

How to Enable Disabled Macros in Excel – Step‑by‑Step Guide

Md. Abdur Rahim Rasel

MD. ABDUR RAHIM is a marine engineer proficient in Excel and passionate about programming with VBA. He views programming as an efficient means to save time while managing data, handling files, and engaging with the internet. His interests extend to Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning, reflecting his versatile skill set. He earned a B.Sc in Naval Architecture & Marine Engineering from BUET, and now he has become a content developer, creating technical content... Read Full Bio