How to remove macro from Excel file

Sometimes, we need to delete macros from Excel files which are older versions of a new macro or are not required in current requirements. In this tutorial we’ll learn how to find the macros available in the sheet and delete or remove the macro that we don’t want to use anymore.

VBA (Visual Basic for Applications) macros are code snippets that automate tasks in Microsoft Excel. They allow users to write and execute custom scripts to perform repetitive and complex tasks, such as data manipulation, calculation, and formatting. To use VBA macros in Excel, you need to open the VBA editor, which is built into the application, and write your code using the Visual Basic programming language. You can then save your macro and run it whenever you need to perform the task it automates.

Step 1 – Open Excel file and enable content

– If you have a macro enabled Excel file, it will be saved with the extension .xlsm. Open that file and click on the Enable Content action button on the message bar.

Step 2 – Locate Macros drop down in View tab

– From the list of main tabs, click on the View tab.
– Locate the Macro group and click on the Macro dropdown.
– Click on the first option “View Macros”.
– Alternatively, you can use the shortcut key ALT+F8 to do the same.

Step 3 – Remove or Delete the required macro 

– In the new dialog box named “Macro” select the desired macro that you need to delete or remove.
– Now click on the Delete button.
– Excel will ask you for confirmation to delete the macro. Press the Yes button to remove the desired macro as shown below.