Go Back  Xtreme Visual Basic Talk > General Discussion > Tech Discussions > Wrong VBA Reference


Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2004, 07:56 AM
billmet billmet is offline
Newcomer
 
Join Date: Dec 2004
Posts: 5
Default Wrong VBA Reference


I am getting the wrong VBA reference in my projects and the Reference Library box in Visual Studio will not let me change my selection. It say's it can't be changed because it is in use. The operating system is Win2000 Server. Thanks!
Reply With Quote
  #2  
Old 12-09-2004, 08:22 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

Could you go into a little more detail. What reference are you trying to remove/change? Which vba application are you using? etc..
__________________
-Carl
Reply With Quote
  #3  
Old 12-09-2004, 08:35 AM
billmet billmet is offline
Newcomer
 
Join Date: Dec 2004
Posts: 5
Default

It is picking up the file: C:\Program Files\Microsoft Visual Studio\VB98\VBA6.DLL

I need file: C:\WINNT\System32\MSVBVM60.DLL

I am using Visual Basic 6.0

Thanks!

Bill
Reply With Quote
  #4  
Old 12-09-2004, 08:52 AM
Wamphyri's Avatar
Wamphyri Wamphyri is offline
Variable not defined

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Ottawa, Ontario
Posts: 4,793
Default

Unfortunately, the computer I'm working on only has VB 5 and .Net on it.
However if I remember correctly.

VBA6.dll is a core dll to visual basic 6 you can't remove it and don't want to remove it.

The MSVBVM60.dll (called Visual Basic runtime objects and procedures) is another core dll to vb 6. I'm surprised that it could possibly be removed.

Could you provide a pic of your references.
You may need to create a new project and simply add your old forms and modules files to the new project.
__________________
-Carl
Reply With Quote
  #5  
Old 12-09-2004, 10:00 AM
billmet billmet is offline
Newcomer
 
Join Date: Dec 2004
Posts: 5
Default

I have tried unregistering the default file and Visual Studio will not open. I have also tried starting a new project and that doen't work either. It still picks up the wrong DLL for VBA and does not allow a change.
Reply With Quote
  #6  
Old 12-09-2004, 12:01 PM
billmet billmet is offline
Newcomer
 
Join Date: Dec 2004
Posts: 5
Default

Also, the error that shows the problem is when I try to compile the project, the compliler can't find the reference library the TRIM function in it.

Thanks,

Bill
Reply With Quote
  #7  
Old 12-09-2004, 12:13 PM
billmet billmet is offline
Newcomer
 
Join Date: Dec 2004
Posts: 5
Default

Problem solved, I unregistered the wanted DLL and then re-registerd it and that solved the problem. Thanks for all the help.

Bill
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->