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

I'm working on a complex UserForm that fetches data from an mdb file and I
went to test it on my bosses (!) machine and Excel gave this error: "Compile
error in hidden (something) ThisWorkBook" - So I go into the VB Editor and
rerun the module "WorkBook_Open()" and Excel is complaining about the Chr()
function... only this time it says "Compiler error: can not find project or
library" - So I'm thinking it's a reference library issue, but why would it
get hung up on the Chr() function? ... thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Strange Compile Error...

Your issue has nothing to do with the Chr function. Your first instinct was
correct in that it is probably a missing reference. In the VBE open Tools -
References and look for an item marked "Missing:". Probably Microsoft ActiveX
Data Objects 2.x (guessing but 2.8 is my guess). You can either change your
code to late binding or you can change the reference to a earlier version
like Microsoft ActiveX Data Objects 2.5...
--
HTH...

Jim Thomlinson


"IT_roofer" wrote:

I'm working on a complex UserForm that fetches data from an mdb file and I
went to test it on my bosses (!) machine and Excel gave this error: "Compile
error in hidden (something) ThisWorkBook" - So I go into the VB Editor and
rerun the module "WorkBook_Open()" and Excel is complaining about the Chr()
function... only this time it says "Compiler error: can not find project or
library" - So I'm thinking it's a reference library issue, but why would it
get hung up on the Chr() function? ... thanks for any help!

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
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
VBAProject name compile error, not defined at compile time Matthew Dodds Excel Programming 1 December 13th 05 07:17 PM
error message: compile error, argument not optional Pierre via OfficeKB.com Excel Programming 3 September 5th 05 03:45 PM
Compile Error: Strange happening Don Rouse Excel Programming 2 July 6th 05 09:51 PM


All times are GMT +1. The time now is 08:33 AM.

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

About Us

"It's about Microsoft Excel"