Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Can' find project or library Error

I've an XLS file (1.5 Mb) with several hundred lines of VBA code, that I've
stripped down to one line of code on a single button on a single sheet, that
line is

Crlf = CHR(10)

But it crashes with
Compile Error ;
Can't find project or library
Which is the error I'm getting when I try to use the 1.5MB file normally

If I create a new XLS file on the same PC with the same single line of code
on a single button it works (of course)

But I've scanned the XLS file with both McAffee + Nortons and shows no
infection

After all that, here's my question
Does anyone know of something simple I'm overlooking, some simple way of
switching off macros or corrupting them so the XLS files open and all
formula's work, all sheets are visible nothing seems wrong, except the
Macro's will not run ?

Thanks

Nick



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Can' find project or library Error

In the VB explorer click Tools - References and look for a reference that
starts with the word "Missing:" This reference does not exist on this
machine. You need to uncheck it and pick a lesser version of the same
reference (assuming that the reference is required at all).

--
HTH...

Jim Thomlinson


"Nicholas B" wrote:

I've an XLS file (1.5 Mb) with several hundred lines of VBA code, that I've
stripped down to one line of code on a single button on a single sheet, that
line is

Crlf = CHR(10)

But it crashes with
Compile Error ;
Can't find project or library
Which is the error I'm getting when I try to use the 1.5MB file normally

If I create a new XLS file on the same PC with the same single line of code
on a single button it works (of course)

But I've scanned the XLS file with both McAffee + Nortons and shows no
infection

After all that, here's my question
Does anyone know of something simple I'm overlooking, some simple way of
switching off macros or corrupting them so the XLS files open and all
formula's work, all sheets are visible nothing seems wrong, except the
Macro's will not run ?

Thanks

Nick



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
Can't Find Project or Library Error Vick Excel Discussion (Misc queries) 1 May 17th 08 12:25 PM
can't find project or library - error Chris T-M New Users to Excel 4 January 18th 07 10:23 PM
Compile error: Can't find project or library Vince Excel Programming 2 October 13th 05 04:50 PM
Error:Can't find project or library Casey[_19_] Excel Programming 9 August 13th 05 09:53 AM
Compile error: Can't find project or library Daniel[_17_] Excel Programming 3 December 8th 04 01:05 PM


All times are GMT +1. The time now is 07:28 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"