COMPILE ERROR: Can't find project or library

5pds

Board Regular
Joined
Mar 24, 2009
Messages
65
Hi there can anyone help with the above. I am fairly new to the VBA program and have never came across this. My code is as follows if it is the problem

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("G7:K154")) Is Nothing Then
Application.EnableEvents = False
Target.Offset(, 8).Value = Time
Application.EnableEvents = True
ElseIf Not Intersect(Target, Range("A7:A154")) Is Nothing Then
Application.EnableEvents = False
Target.Offset(, 20).Value = Time
Application.EnableEvents = True
End If
End Sub

Thanks

Paul
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Yeah there is one in the reference that is ticked as Missing (Ref Edit Control)

The top line in the coede is the one that is highlighted in yellow.
 
Upvote 0
Solved (For Me at least)
I have found many posts with solutions that did not work for me. I would uncheck the RefEDit (Missing) in VBE/Tools/References, and even reboot but it would always come back. I was having many symptoms in addition to the subject message, such as chr() & left() were undefined. The solution was to create an OFFICE10 folder in the Program Files/Microsoft Office folder and to place a copy of RefEdit.dll in OFFICE10. You may find this .dll in OFFICE11.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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