Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent: Object Explicit Error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Urgent: Object Explicit Error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Urgent: Object Explicit Error

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Variable Not Set Error on Selection object Jean Excel Worksheet Functions 3 July 24th 06 06:45 PM
VB script in Excel object in Powerpoint (Urgent) epak Excel Discussion (Misc queries) 1 March 24th 06 05:04 PM
pivot table error.Please help! very urgent anu_manu Excel Discussion (Misc queries) 0 February 13th 06 08:34 PM
validation error, urgent plz help daroc Excel Worksheet Functions 1 January 23rd 06 10:25 PM
Unable to access GridLines in Microsoft Graph Object [URGENT] usamaalam Charts and Charting in Excel 0 March 7th 05 05:29 AM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"