Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Enable/Disable Macros Pop-up in Excel

Engineering spreadsheets

Removing Enable/Disable Macros Pop-up in Excel

by  swertel  Posted    (Edited  )
Many of us write a macro to be used temporarily when creating a worksheet in Excel. Later, we delete the macro using the Tools-->Macro menu item (Alt+F8), but every time we open the file, a pop-up appears asking if we want to enable or disable macros. The following is a step-by-step procedure to COMPLETELY remove a macro and therefore not get the annoying pop-up message.

To "cleanly" remove the macro:
1) Select Visual Basic Editor (Alt+F11) from the Tools-->Macro menu. A new window appears. You will see several condensed menu items (in bold print) and probably only one (1) item that is expanded. It should be labeled "VBAProject (yourfilename.xls)." Within that item will be two folders: Microsoft Excel Objects--containing the number of sheets in the workbook and "ThisWorkbook," and Modules.
2) Delete/Remove the modules folder. You may have to delete all the modules below the folder and the folder will then dissappear.
3) Exit VBA.
4) Save your Excel workbook.

You will no longer get the intro pop-up message to enable or disable macros when you open this file.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search