Results 1 to 17 of 17

Thread: chr(65) => can't find project or library

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    chr(65) => can't find project or library

    hello
    when i have:

    dim str as string
    str = chr(65)

    i get the following error: can't find project or library !
    Don't understand why?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: chr(65) => can't find project or library

    Is this in an Office VBA app or in VB6?
    Sounds like your missing a reference or a possibly a corrupt file.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: chr(65) => can't find project or library

    it's vba excel.
    and now i see i cannot use the Mid function neither!
    am i missing some references maybe ?

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: chr(65) => can't find project or library

    These are the four core references you should have in your VBA IDE.

    Visual Basic For Applications
    Microsoft Excel xx.0 Object Library
    OLE Automation
    Microsoft Office xx.0 Object Library
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: chr(65) => can't find project or library

    found it already.
    remember i had the same problem about a year ago and searched a whole day on it:

    solution:
    - uncheck all references that are marked as "MISSING"
    - reboot computer

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: chr(65) => can't find project or library

    So this workbook came from another system with a different version of Excel.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: chr(65) => can't find project or library

    Quote Originally Posted by RobDog888
    So this workbook came from another system with a different version of Excel.
    now i have this problem with excel 2000.
    last year i had the same problem on another computer but with vb itself !

    very strange, however i found the solution on the internet (to uncheck all references that are marked MISSING), so the problem is not unknown.

    however, very strange (and stupid) behaviour

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: chr(65) => can't find project or library

    The "MISSING" references issue usually happens when you upgrade Office or VB. Since the references are pointing to a
    specific CLSID for one version and yo upgrade to another version then the CLSID will be different. So you get a "MISSING" reference.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: chr(65) => can't find project or library

    those guys have the same problem:
    http://www.idautomation.com/kb/vba-compile-error.html

    This is a Microsoft application problem... This is a documented issue at the Microsoft website....

  10. #10
    New Member
    Join Date
    May 2005
    Posts
    1

    Re: chr(65) => can't find project or library

    I have the same problem, but the Excel file I have calls a function in VBA. This shows the "compile error" box. However, the spreadsheet keeps calling the function, so if I try to reset or go into design mode, the error just keeps appearing, so I can't access the references. All I can do is kill the application.

  11. #11
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Re: chr(65) => can't find project or library

    Quote Originally Posted by Gibber
    I have the same problem, but the Excel file I have calls a function in VBA. This shows the "compile error" box. However, the spreadsheet keeps calling the function, so if I try to reset or go into design mode, the error just keeps appearing, so I can't access the references. All I can do is kill the application.
    if you open a blank Excel file, you should be able to access and modify the references so that the next time you open your excel file that gives the issues, it should be ok.
    if you fail to plan, you plan to fail

  12. #12

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    13

    Re: chr(65) => can't find project or library

    Quote Originally Posted by Gibber
    All I can do is kill the application.
    go to Tools - References and uncheck all that is marked as "MISSING"

  13. #13
    New Member
    Join Date
    Nov 2009
    Posts
    2

    Unhappy Re: chr(65) => can't find project or library

    Hello.

    I have the same issue. If i remove the missing component, it works.

    I have referenced to an AutoCAD reference.... something axdb16enu.tlb file.

    Is there any way to "install" this reference somewhere somehow?

    As the excel product is already shipped and the VBA is password protected. I do not want to give the password to the users to uncheck the missing reference.

    It wont work where autocad is not installed.

    If i could install or put the reference somehow in the client machine, the problem will be solved.

    Hope i made sense in my question :P too confused!! pls help!!

    Regards

    Rishi Doshi

  14. #14
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: chr(65) => can't find project or library

    Welcome to VBForums

    To install the reference you are likely to have to install AutoCad - which would be a big waste of resources, and be illegal too.

    Even if there is an easier way, you will still be wasting resources.


    As you need to ship something out anyway, why not simply untick the reference and send out your Excel product?

  15. #15
    New Member
    Join Date
    Nov 2009
    Posts
    2

    Re: chr(65) => can't find project or library

    Hi si_the_geek,
    thanks 4 ur time.
    The thing is that its already shipped away.
    I did some R&D at my end and came up with a following temporary solution:
    i created a new folder in Common Files named "Autodesk Shared"
    [ C:\Program Files\Common Files\Autodesk Shared ]
    and pasted the file "axdb16enu.tlb" in it.
    Now it works.
    It would be unprofessional if i tell the clients to make folders and paste files in them.
    I am looking for an installable .exe file which will do the above.
    Any suggestion please!

  16. #16
    New Member
    Join Date
    Dec 2021
    Posts
    1

    Re: chr(65) => can't find project or library

    Quote Originally Posted by stt_d31 View Post
    it's vba excel.
    and now i see i cannot use the Mid function neither!
    am i missing some references maybe ?
    Instead of using just Mid, Left, Right,
    Use Vba.Mid,Vba.Left, etc

  17. #17
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: chr(65) => can't find project or library

    i doubt that the OP is still waiting for an answer 17 years later
    and while using the vba prefix would be a work around it would not be a correct solution to work around missing references
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width