Can't Remove a Macro from Excel Workbook

  • Thread starter Dean deancarpenter
  • Start date
D

Dean deancarpenter

A while back, I created a simple macro in an excel
workbook that I regularly used. After a few days of use,
I realized that it was a stupid macro, and deleted it from
the workbook.

Since then, every time I open the workbook, a pop up
window asks me if I want to enable or disable macros in
the workbook. There are no macros so why is it asking me
this question?

Any help I can get in removing this is appreciated.
 
C

Chip Pearson

Dean,

You need to remove the module in which the macro was stored. Even
an empty module will cause the warning message to be displayed.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Dean (e-mail address removed)"
 
D

Dean deancarpenter

Being a dummy in Excel, do you mean remove the worksheet
that the Macro was stored in, or something else. If it's
something else, can you tell me how to do it??

Thanks in advance again for all your help!
 
P

Peo Sjoblom

Dean,

open the workbook in questions, press alt + F11, find the workbook (the name
of the workbook) in the left project pane,
right click the Module(s) (looks like a folder), select remove module,
select no when prompted to export it.
Close the VBA editor with alt + Q. Save the workbook..
 
D

Dean DeanCarpenter

Worked great! Thanks for all the help!

-----Original Message-----
Dean,

open the workbook in questions, press alt + F11, find the workbook (the name
of the workbook) in the left project pane,
right click the Module(s) (looks like a folder), select remove module,
select no when prompted to export it.
Close the VBA editor with alt + Q. Save the workbook..

--

Regards,

Peo Sjoblom


"Dean (e-mail address removed)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top