Results 1 to 15 of 15

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

  1. #1
    New Member
    Join Date
    May 05
    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 01
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    59,465

    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 (VBA, VB 6, VB.NET, C#)
    Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007

  3. #3
    New Member
    Join Date
    May 05
    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 01
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    59,465

    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 (VBA, VB 6, VB.NET, C#)
    Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007

  5. #5
    New Member
    Join Date
    May 05
    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 01
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    59,465

    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 (VBA, VB 6, VB.NET, C#)
    Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007

  7. #7
    New Member
    Join Date
    May 05
    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 01
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    59,465

    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 (VBA, VB 6, VB.NET, C#)
    Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007

  9. #9
    New Member
    Join Date
    May 05
    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 05
    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 02
    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
    New Member
    Join Date
    May 05
    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 09
    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 02
    Location
    Bristol, UK
    Posts
    35,559

    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 09
    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!

Posting Permissions

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