LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default compile error message

Hi Petr,

I do not know why one function rather than another is highlighted in the
event of a missing reference.

Rather than your suggestion of repeatedly closing and reopening Excel,
others have suggested that qualifying the function with the application
object helps.

I believe in cures rather than palliatives, however, and I would, therefore,
advocate that a broken reference should either be located or deleted.

Of course, in the absence of a response from Kevin, it is not possible to
confirm the original diagnosis.

---
Regards,
Norman



"PBezucha" wrote in message
...
Hi, Norman,
Still, there must be something rotten in what Kevin has disclosed. I work
with my rather sizeable project on different computers with different XLs
implemented, but all of them 2k and higher. Sometimes, though rarely, when
shifting computers with a programm debugged at another place, the compiler
announces exactly the same error, invariably at one of the three string
functions: Right($ - makes no difference), Left, Mid. After a while of
patience (closing and opening XL several times) the it gets sensible.
Strange, why just these old and ubiquitous functions are so touchy?
Petr
--
Petr Bezucha


Norman Jones píse:

Hi Kevin,

With the workbook in question active, run the problematic code

When the code errors, go to the VBE and select the project in the Project
Explorer window

Hit the reset button and look at the Tools | References list

Look for any references marked as "MISSING".

Either uncheck the reference or, if the reference is needed, try the
browse
button to locate the library,

---
Regards,
Norman


"KevinGPO" wrote in message
...
This is referring to the Office Excel VB. Excel VB claims it is just
like
VB.

I am wondering where on the internet how I can find out whether a
function
existed for a particular version of Office Excel VB?

For example, I am using Office 2003 but my clients are using Office 95,
or
97. Am wondering whether the string function Left() & Right() existed
in
Office 95/97 Excel VB? If so, then does anyone have any ideas why VB
threw
a
"Compile error: Can't find project or library" and it highlights Left(
function line?








 
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
Excel load message Compile error in hidden module AutoExecNew r0dsc0tt Excel Discussion (Misc queries) 4 September 4th 09 03:24 PM
compile error message on a new excel workbook opening manicmollymacomb Excel Discussion (Misc queries) 0 March 3rd 06 10:06 PM
error message: compile error, argument not optional Pierre via OfficeKB.com Excel Programming 3 September 5th 05 03:45 PM
VBA Error Message "Compile Error...." Steve Excel Discussion (Misc queries) 3 July 15th 05 09:20 AM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM


All times are GMT +1. The time now is 03:22 PM.

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"