Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trying to delete macro -- 'reference is not valid'


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

--
mauri
-----------------------------------------------------------------------
maurim's Profile: http://www.excelforum.com/member.php...fo&userid=1485
View this thread: http://www.excelforum.com/showthread.php?threadid=26480

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Trying to delete macro -- 'reference is not valid'

Disable macros thru the security settings then you will be able to open the
workbook and delete the macro.


"maurim" wrote in message
...

I am trying to delete a macro in a worksheet. Apparently, the macro was
created badly and the message "reference is not valid" appears when I
try to do anything -- run, step into, edit, etc. It will not allow a
delete. Suggestions?


--
maurim
------------------------------------------------------------------------
maurim's Profile:
http://www.excelforum.com/member.php...o&userid=14851
View this thread: http://www.excelforum.com/showthread...hreadid=264806



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Trying to delete macro -- 'reference is not valid'


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


-----Original Message-----

I am trying to delete a macro in a worksheet.

Apparently, the macro was
created badly and the message "reference is not valid"

appears when I
try to do anything -- run, step into, edit, etc. It will

not allow a
delete. Suggestions?


--
maurim
----------------------------------------------------------

--------------
maurim's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=14851
View this thread:

http://www.excelforum.com/showthread...hreadid=264806

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro: "Reference not valid" Mason C Excel Discussion (Misc queries) 1 October 23rd 09 08:43 PM
How do I delete a missing reference to a Macro Trevor W Excel Discussion (Misc queries) 3 July 16th 08 10:07 PM
"Reference not valid" error when I try to edit the macro in excel Yuvaraj Excel Discussion (Misc queries) 1 January 10th 08 08:32 PM
'reference is not valid' Tim Excel Discussion (Misc queries) 12 June 21st 06 07:36 PM
Reference is not valid Steved Excel Worksheet Functions 1 January 30th 06 10:56 PM


All times are GMT +1. The time now is 10:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"