Closed Thread
Results 1 to 4 of 4

Can't find project or library

  1. #1
    Registered User
    Join Date
    08-03-2009
    Location
    London, England
    MS-Off Ver
    MS Office 365
    Posts
    13

    Can't find project or library

    Macro-enabled excel workbook opens, but gives the message "can't find project or library" in a message box.
    When I close the workbook excel, of its own accord, opens it again, and again gives the error message.
    (It is very frustrating because opening the workbook can take some minutes).

    I have sought answers on the web. The standard practice is to open the workbook and look at the References tab under Tools in the macro editor.
    The trouble is that in my case the References tab is completely empty!!!
    So I am at a loss.
    I downloaded the MS Repair Tool, only to find it does not repair .xlsm files. So no joy there.


    When I last used the workbook (yesterday) everything was OK. I closed it normally.
    Now it seems I have lost my program entirely.


    This has happened on several of my workbooks. It is not predictable. I hold my breath and pray that I do not get the dreaded message every day.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Can't find project or library

    What's in the workbook?

    Is there code that executes when it opens?

    How are you opening it?

    If you open Excel, open another workbook and then open the problem workbook what happens?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-03-2009
    Location
    London, England
    MS-Off Ver
    MS Office 365
    Posts
    13

    Re: Can't find project or library

    There is no code in the workbook that executes when the workbook opens.
    The macros are executes using a Button.
    The workbook comprises a "SetUp" sheet for user input. This input is quite complex and validation comprises about 50% of the main macro code.
    However, the real function is to locate files in a directory and analyse their content from the filename.

    I have tried opening the workbook (a) on its own, (b) after first starting excel and loading a new Book1 empty workbook, (c) after first starting excel loading a different macro-enabled workbook which does have the usual top four entries in the VBA References tab enabled. None of these methods worked.
    The workbook is on a network drive, so I have tried opening it from a different (but same Windows 10 OS and same Excel 365 update) computer. The workbook always gives me the error message.

    One week ago I copied the workbook. This copy opens perfectly, (as did the original workbook yesterday).
    I admit that I ran the macro yesterday. It worked. I closed normally and thought no more of it.
    The file sizes of the 1-week-old copy and the 'bad' workbook differ by 1 kb (the copy is 6530kB, the 'bad' is 6529 kB)


    I am at a complete loss!!

    The situation is not desperate because I do have that 1-week-old copy which opens OK.
    But the problem is cot confined to this one workbook. I have been suffering it for some months with 3 other macro-enabled books. Sometimes (actually, Usually), they open OK, but I am now in the habit of copying them regularly because Excel can at any unsuspected time, fail to find the project or library.

    If you have any ideas I would be most grateful to read them.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Can't find project or library

    Closed at OP request to open in Commercial Services.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't find Project or Library, then no Project
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2017, 09:35 AM
  2. Cant Find Project or Library
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2016, 02:30 PM
  3. Cant find project or library
    By abhilash0728 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-18-2016, 07:43 AM
  4. Can't find project or library - MS Forms 2.0 Ojbect Library
    By RTSmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2012, 06:51 PM
  5. Can't Find Project or library
    By cycle_simon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2008, 07:41 AM
  6. [SOLVED] Cant find project or library
    By Newbie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2006, 07:15 AM
  7. [SOLVED] Can't find project or library
    By salut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 06:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1