How to Remove Macros from Excel – 5 Methods

This is an overview:

remove macros from excel

 


Method 1 – Selecting and Removing Macros using the Macro Dialog Box in Excel

Step 1: Opening the Macros Dialog Box

  • Go to the Developer tab.
  • Select Macros in Code.
  • Click Macros.

Opening the Macros Box to Remove Macros from Excel

 Note: The Developer tab is by default a hidden tab in Excel. Click here to see how to open the Developer tab.

Step 2: Deleting the Macro

  • In the Macro dialog box, select the Macro you want to delete. Here, Macro_5.
  • Click Delete.

 

Select and Remove Macros from Macro Dialogue Box in Excel

 

Read More: Excel VBA to Pause and Resume Macro


Method 2 – Using a Shortcut Key to Delete Macros in the Macro Dialog Box in Excel

Step 1: Pressing the Shortcut to Open the Macro Dialog Box

  • Press ALT+F8 .

 

Step 2: Deleting the Macro

  • Select the Macro you want to delete: Here, Macro_5.
  • Click Delete.

Select and Remove Macros from Macro Dialogue Box in Excel

 

Read More: How to Record a Macro in Excel


Method 3 – Selecting and Deleting Macros from Excel Modules

Step 1: Opening the VBA Window

  • Go to the Developer tab.
  • Click Visual Basic.

Opening the Module Box to Remove Macros from Excel

Step 2: Selecting the Module with the Macro

  •  In the VBA window, select the Module that contains the Macro you want to delete. Here, Module 5.

Selecting Module to Remove Macros from Excel

Step 3: Removing the Module by Right-Clicking

  • Right-click.
  • Choose Remove Module.

Context Menu

Step 4: Checking the Warning Box

  • In the warning box, click No.

Warning Box

 

Things to Remember:

  • The selected module will permanently be deleted.
  • To avoid it, select Yes in step 4 and save a Basic file (*.bas). Here, Module5.

Saving a Basic File to Remove Macros from Excel


Method 4 –Removing Macros from Excel Modules with Shortcut Keys 

  • Press ALT+F11 to open the VBA window.

Applying Shortcut key

Follow the steps described in Method 3.


Method 5 –Deleting All the Macros by Saving the Excel File with the .xlsx Extension

Step 1: Opening the File Tab

  • Click the File tab.

Clicking File Tab to Remove Macros from Excel

Step 2: Saving the Workbook as an Excel Workbook

  • Save the Workbook as an Excel Workbook instead of an Excel Macro-Enabled Workbook.

Saving Process

 


Download Practice Workbook


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Rifat Hassan
Rifat Hassan

Rifat Hassan, BSc, Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, has worked with the ExcelDemy project for almost 2 years. Within these 2 years, he has written over 250 articles. He has also conducted a few Boot Camp sessions on effective coding, especially Visual Basic for Applications (VBA). Currently, he is working as a Software Developer to develop and deploy additional add-ins to enhance the customers with a more sophisticated experience with Microsoft Office Suits,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo