Trying to delete macro -- 'reference is not valid'

  • Thread starter Thread starter maurim
  • Start date Start date
M

maurim

I am trying to delete a macro in a worksheet. Apparently, the macro wa
created badly and the message "reference is not valid" appears when
try to do anything -- run, step into, edit, etc. It will not allow
delete. Suggestions
 
Disable macros thru the security settings then you will be able to open the
workbook and delete the macro.
 
Go directly to the VBA editor (ALT+F11)
There should be a window in the top left corner named
Project-VBA Project. if not use CTRL+R and it will appear.
Find the workbook that contains the macro, clik in the +
sign on the Modules folder, find the module that contains
the macro rightclick and choose remove module...

That should eliminate it.

Regards
JS
 

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

Back
Top