|
-
May 4th, 2005, 11:53 PM
#1
Thread Starter
New Member
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?
-
May 5th, 2005, 12:13 AM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 5th, 2005, 12:17 AM
#3
Thread Starter
New Member
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 ?
-
May 5th, 2005, 12:26 AM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 5th, 2005, 12:27 AM
#5
Thread Starter
New Member
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
-
May 5th, 2005, 12:31 AM
#6
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 5th, 2005, 01:41 AM
#7
Thread Starter
New Member
Re: chr(65) => can't find project or library
 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
-
May 5th, 2005, 10:47 AM
#8
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 10th, 2005, 04:46 AM
#9
Thread Starter
New Member
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....
-
May 11th, 2005, 01:26 PM
#10
New Member
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.
-
May 11th, 2005, 02:24 PM
#11
Addicted Member
Re: chr(65) => can't find project or library
 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
-
May 17th, 2005, 09:51 AM
#12
Thread Starter
New Member
Re: chr(65) => can't find project or library
 Originally Posted by Gibber
All I can do is kill the application.
go to Tools - References and uncheck all that is marked as "MISSING"
-
Nov 18th, 2009, 04:13 AM
#13
New Member
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
-
Nov 18th, 2009, 04:38 AM
#14
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?
-
Nov 18th, 2009, 04:51 AM
#15
New Member
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!
-
Dec 12th, 2021, 09:36 PM
#16
New Member
Re: chr(65) => can't find project or library
 Originally Posted by stt_d31
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
-
Dec 13th, 2021, 03:07 AM
#17
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|