In managing a big family weekend, I used Excel to track everything from invitations to RSVPs. I tried to create a macro to do something, but deleted it after figuring out it wouldn’t do what I wanted. Yet, every time I opened the workbook, Excel asked if I wanted to run macros as shown in the below image.

What the hey? I deleted the macro. Why are you asking, Excel? So I thought the macro wasn’t deleted. I opened the Macro dialog box (Tools > Macro > Macros), which showed NOTHING indicating no macros existed in this workbook.
OK, so why are you giving me these macro messages? If I can’t find an answer to a Microsoft problem, I post the problem in the Microsoft forums where MVPs often provide the answer. This time, I lucked out on finding the solution myself (which doesn’t happen often as I guess I find the rare problems). Here are the steps I used since my situation didn’t need to do all the steps shown in the solution — the only folder that appeared as the Microsoft Excel Objects.
Save a back-up of the file and work from the back-up. If it works, you can save the back-up over the original file.
Right-click any tab and select View Code.


Press Ctrl+A to select everything (even if nothing shows) and press Delete.
Repeat Steps 2 and 3 until completed for all items in the Microsoft Excel Objects folder.
Close the Visual Basic Editor.
Save the workbook.
Open the workbook again and the Macro message should be gone for good.
If you have a modules folder, expand it (click Modules folder once to expand) and right-click the module. Select Remove Module. Excel asks if you want to export it — up to you. Repeat the steps for all modules. Once done, do Steps 6 and 7.
Subscribe:
6 comments
Thank you. This was exactly my problem and the solution worked.
Thank you! That was exactly my problem and the solution worked!
Thank you so much for posting this! It was very helpful! (Problem solved
I have the opposite problem. My macro disappeard, and I need to get it back.
The “macros exist” warning comes up, but I can’t find the macro.
This was an annoying problem I had and this solved it.
Thank you so much! I spent hours trying to figure it out.
Post a comment (or leave a trackback)