+ Reply to Thread
Results 1 to 6 of 6

Can't find Project or Library

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Can't find Project or Library

    I've posted on this before, still not close to finding a solution. The attached workbook lives on a shared drive, but I'm the only one who accesses it. I update it on a daily basis. About once every two months it corrupts itself. My first indication is a message saying "Can't Find Project or Library" when I go to open it. When I open the VB Editor I can't see the project. After that the workbook is unsaveable (even if I try to save it as an XLS instead of XLSM). I usually have backups I can restore, so it's not a total loss, but I can't figure out why it keeps corrupting or how to prevent it from corrupting. I'm in need of some HELP, please. Thank you.
    Attached Files Attached Files
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can't find Project or Library

    Have you tried renaming it before reopening it? That has worked for me in the past
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't find Project or Library

    I haven't tried renaming at the first indication of trouble, but I have renamed and opened. Same corruption.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Can't find Project or Library

    You have a reference set to the Forms library but do not appear to have any userforms or MSForms controls in the file- although there is a code stub for an optionbutton click event (and a couple of other worksheet events). I'd suggest you remove those unused code stubs, remove the Forms reference and then run Code cleaner on your project.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't find Project or Library

    I can't run code cleaner because I'm on 64bit Excel. When I try to remove the reference to MSForms I get a message "Can't remove control or reference; in use"

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: Can't find Project or Library

    Okay, here's what I did;
    1) Exported and removed all code modules.
    2) Removed all code in various sheets (copied to a Word doc for safekeeping)
    3) Removed "thisWorkbook" code (copied to Word doc)
    4) Saved WB as .xlsx to remove all code.
    5) Opened, saved as .xlsm
    6) Replaced all code.
    7) On References, set only for "Visual Basic for Application", "Microsoft Excel 15.0 Object Library", "OLE Automation", "Microsoft Office 15.0 Object Library"

    now we'll see if that does the trick.

+ Reply to 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. 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
  4. cant find project or library
    By kieranbop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2011, 10:00 AM
  5. Cant Find Project or Library
    By Mooseman60 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2010, 06:13 AM
  6. Can't Find Project or Library
    By Wes28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2008, 08:48 AM
  7. [SOLVED] Cant find project or library
    By Newbie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2006, 07:15 AM

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