SOLVED! REF#$A1 from workbook

ROBINSYN

Board Regular
Joined
Aug 19, 2002
Messages
188
Everytime I open my workbook I get a message that "Ref#$a1 that is scheduled to run each time file is open can not be found".
I can't find this on any of my sheets in the file. How can I remove this.

I can email the file. I am so close to completion this is heartbreaking. I tried everything. Looking for ref. but I can not see it anywhere. I copied sheets to neww folder but error is still there. Other workbooks run ok. I'm lost.
This message was edited by ROBINSYN on 2002-10-27 12:45
This message was edited by ROBINSYN on 2002-10-27 16:42
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
It sounds like there might an Auto-open macro, or Private Sub Workbook_Open() event macro running when the file is opened & which includes a reference to a sheet/file that has been deleted.
Check in the VB Editor (Alt F11)/ for any VBA code that looks like it might be causing this.

HTH
 
Upvote 0
Hi there

Is there an event macro in ThisWorkBook that is programmed to run when you open the file?
Is there an event macro in any of the worksheets?
I tried to duplicate your problem by putting the name of a macro in A1 of sheet1 then put this event macro in ThisWorkBook:

Private Sub Workbook_Open()
Application.Run Range("A1").Value
End Sub

So when the workbook is opened it looks for the name of a macro in A1 and then runs the macro with that name. If I change the name of the macro in A1, when I again open the file it pops a message saying it cannot find the macro. Not quite the same as yours but perhaps on the right track.

So use Alt+F11 to go to the VB editor and find your file in the project window, double click each sheet and ThisWorkBook and all modules in turn to read any code that relates to A1.

This might give you some clues.

regards
Derek
 
Upvote 0
I looked in VB, in all sheets, it just isn't there. Trying to download asap, hope it works. Will it remove only selected macros or akll in a workbook?
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,266
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top