+ Reply to Thread
Results 1 to 8 of 8

compile error: can't find project or library

  1. #1
    Registered User
    Join Date
    06-14-2016
    Location
    texas, usa
    MS-Off Ver
    2016
    Posts
    7

    compile error: can't find project or library

    Hi all,

    I have an issue with my vba application. while I am opening my excel sheet i am getting an errror like can't find project or library. can anyone help me out.
    I tried to execute both in windows7/10 but same error. I am using excel 2016 32 bit.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: compile error: can't find project or library

    Welcome to the board.

    Open the VBE and do Tools > References. Look for one at the top of the list that says MISSING. Untick it.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-14-2016
    Location
    texas, usa
    MS-Off Ver
    2016
    Posts
    7

    Re: compile error: can't find project or library

    I am new to this VBA scripting I had a code that already written. when I try to open excel sheet,it is prompting me compile error i.e can't find project or library.
    tell me how to go step by step

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: compile error: can't find project or library

    Do Alt+F11 to open the VBE

    Tools > References

    In the list of ticked references at the top, look for one that says MISSING. Untick it.

  5. #5
    Registered User
    Join Date
    06-14-2016
    Location
    texas, usa
    MS-Off Ver
    2016
    Posts
    7

    Re: compile error: can't find project or library

    But in tools reference is greyed i.e inactive

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: compile error: can't find project or library

    Press Run > Reset and try again.

  7. #7
    Registered User
    Join Date
    06-14-2016
    Location
    texas, usa
    MS-Off Ver
    2016
    Posts
    7

    Re: compile error: can't find project or library

    If i run the code i am getting error msg and if i reset same error
    I had a security warning like : external data connection have been enabled, if i enable then i am getting error and then i click ok i am not able to go to regerences in tools.
    If i donot enable security warning i can see refernce in active mode and i find missing microsoft windows common control 26.0 (sp6)

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: compile error: can't find project or library

    Windows commons controls have not been distributed with Excel for a long time (maybe 2007?)

    See http://answers.microsoft.com/en-us/o...f-0184de41d04d and https://support.microsoft.com/en-us/kb/896559 for workarounds.

    I've never used the library, and so have no other suggestion.

+ 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. Compile Error: Can't find project or library
    By sugaprasad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 07:25 AM
  2. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  3. Compile error: Can't find project or library
    By appleguru in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-20-2012, 11:32 AM
  4. Compile Error: Can't find project or Library
    By ashmakda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 06:20 PM
  5. Compile Error - Can't find project or Library
    By bmasella in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2007, 07:55 PM
  6. Compile error: Can't find project or library
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2006, 08:25 AM
  7. [SOLVED] Compile Error: Can't Find Project or Library
    By BeckenhamDave in forum Excel General
    Replies: 0
    Last Post: 01-25-2006, 08:40 AM
  8. [SOLVED] Compile error: Can't find project or library
    By Vince in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2005, 12:05 PM

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