ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Trying to delete macro -- 'reference is not valid' (https://www.excelbanter.com/excel-programming/311944-trying-delete-macro-reference-not-valid.html)

maurim[_3_]

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


No Name

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

.


Kevin

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

.



All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com