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'


Thanks. Tried that. Doesn't allow access

--
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
No Name
 
Posts: n/a
Default Trying to delete macro -- 'reference is not valid'

you can do what i did one time.
transfer all data and other macros to file2.
then delete the file1.

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

Thanks. Tried that. Doesn't allow access.


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

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

action=getinfo&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: 134
Default Trying to delete macro -- 'reference is not valid'

It sounds like there is some hidden corruption in the
file. Recovery from this type of problem can painful. The
only thing I can think of is the following:

In the VBA editor export everything (sheets, macros,
forms, class files, etc.)in the workbook to a class file
except the macro that is a problem. If the macro is a
sheet or form macro do not export that item. You can
export each item by selecting each sheet, form, etc. and
then right click and select export. When you have exported
everything but the problem macro, close this file. Open a
new file and import everything you have exported from the
previous file. Recreate the sheet, form or macro that
contained the previous error.

This may be painful to do, but it is the only thing I know
that should work. I have done a fair amount of development
in Access and would have corruption problems from time to
time and something similar in Access was the only solution.

If this is to painful, unless this macro is causing
problem it may be better just to leave the problem macro
there and ignore the problem. I hope that helps!

Kevin
-----Original Message-----

Thanks. Tried that. Doesn't allow access.


--
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
Trying to delete macro -- 'reference is not valid' maurim Excel Programming 2 September 29th 04 08:46 PM
Trying to delete macro -- 'reference is not valid' maurim[_2_] Excel Programming 0 September 29th 04 08:19 PM


All times are GMT +1. The time now is 03:18 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"