How to fix Compile Error message?

RJSIGKITS

Board Regular
Joined
Apr 15, 2013
Messages
109
Hi Guys.

I have just bought a new computer, and have been transferring my files, but trying to use my main Excel Document, and it comes up with:
"Compile Error in Hidden Module: Sheet 22"

My sheet number 22 is the sheet with all of my data Validation lists on.

Can anybody please tell me what I need to do to sort this out?


Thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Unprotect the code so the compiler can flag the actual error line.
 
Upvote 0
Unprotect the code so the compiler can flag the actual error line.

Thanks for your quick response, I have unprotected the the code, and it now comes up with an error in this:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)Application.EnableEvents = False
If Not Application.Intersect(Target, Range("B12:B251")) Is Nothing Then
Target(1).Value = UCase(Target(1).Value)
End If
Application.EnableEvents = True
End Sub

It highlights the top line in yellow, then "UCase" in yellow as well..
 
Upvote 0
Sounds like a reference error - if you're getting a 'Can't find project or library' type error. Stop the code, click Tools-References and see if any of the checked references start with "MISSING:"
 
Upvote 0
Crikey, this is a nightmare - seems all of my coding is now flagging issues!
I'm using vlookup as well, and when I enter my logical test, it says:
"Can't find Project or Library" Then opens a 'References' window, highlighting a line that says "Microsoft Windows common controls-2 6.0 (SP6)" ...

... AAARRRGHHHH!!! :rofl:
 
Upvote 0
Hi Rory.

Thank you - you were spot on, that's precisely the error I'm getting.
So, as well as the highlighted row as mentioned, there is also a "MISSING: BoxEdit 1.0 Type Library" in the list...
 
Upvote 0
If you aren't using those references, just uncheck them and try compiling the code.
 
Upvote 0

Forum statistics

Threads
1,224,352
Messages
6,178,069
Members
452,822
Latest member
MtC

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