Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am getting an error: "Compile error:can't find project
or library" for variables that are not defined. Object Explicit has not been stated and the option "Require Variable Declaration" is not ticked. Any help on this asap would be greatly appeciated. Thanks Jonathan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This error generally happens when an object library is missing. Go to Tools,
References and check to see if any of the selected libraries are missing. If so, Remove it and reload it. "Jonathan Lowe" wrote in message ... I am getting an error: "Compile error:can't find project or library" for variables that are not defined. Object Explicit has not been stated and the option "Require Variable Declaration" is not ticked. Any help on this asap would be greatly appeciated. Thanks Jonathan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jonathan,
Try the following. First, in VBA go to the Tools menu, choose References, and see if any references are marked "MISSING". If so, uncheck those references. Try to compile the code. If this doesn't work, then close Excel, and go to the Windows Start menu, choose Run and enter the following in the Run dialog: Excel.exe /regserver -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Jonathan Lowe" wrote in message ... I am getting an error: "Compile error:can't find project or library" for variables that are not defined. Object Explicit has not been stated and the option "Require Variable Declaration" is not ticked. Any help on this asap would be greatly appeciated. Thanks Jonathan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
VB script in Excel object in Powerpoint (Urgent) | Excel Discussion (Misc queries) | |||
pivot table error.Please help! very urgent | Excel Discussion (Misc queries) | |||
validation error, urgent plz help | Excel Worksheet Functions | |||
Unable to access GridLines in Microsoft Graph Object [URGENT] | Charts and Charting in Excel |