Solved

MISSING:Microsoft VBScript Globals

Posted on 2001-07-26
5
534 Views
Last Modified: 2012-06-21
I made a VB program that previously worked on my computer, then today got stopped when the "Mid" function didn't have a reference to it.  I looked in the "References" in the Project menu and saw the following message for the Microsoft VBScript Globals (vbscript.dll\1):

MISSING:Microsoft VBScript Globals

I downloaded the latest Microsoft Scripting Engines Version 5.5 on Microsoft's site, rebooted, and the message still appears in the References.  Then I tried registering vbscript.dll which is in my WinNT\system32 folder (I'm using Windows 2000 & VB 6, service pack 5). Still no luck.  Any ideas?

Thank you for your help!
0
Comment
Question by:psmithphil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
Dave_Greene earned 200 total points
ID: 6324720
Open up your vbp with notepad and remove the reference.

Then load your project again and run it.

Should be ok

-D
0
 
LVL 1

Expert Comment

by:ramani_gr
ID: 6324921
I hope the "Mid" function is VB's inbuilt function.  It does not require any special dll.  If your vb has properly installed, then there should not be a problem with this "Mid" function.  Good luck.
0
 

Author Comment

by:psmithphil
ID: 6325071
Dave, you solved the problem!  I actually removed the reference to the Microsoft VBScript Globals in "Project.. References" menu and it worked after I restarted Visual Basic. It seems I forgot your notepad idea by the time I walked over to my laptop, but oh well, it's working now.

What's interesting is that now I no longer have any reference to the Microsoft VBScript Globals!  I guess it was trying to use those non-existing globals instead of just regular VB, and when I removed the globals reference, it used what it was supposed to.

Thank you so much for solving my dilemma!  You've certainly earned your T-Shirt!
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6325093
Glad I could help.

Let me tell you the real reason why this happens... And I'm not sure why, but when you have an invalid reference within your vbp file, odd things like common vb functionality stop working.  It is almost impossible to debug because you are getting errors that should never happen in the IDE.  Something about the corrupt reference causes a memory leak in the VB IDE.

Cheers!

-Dave
0
 

Author Comment

by:psmithphil
ID: 6325274
Yes,it was certainly strange behavior and I was lucky just to notice the "MISSING:" message.  The thing is, I don't even recall adding the VBScript Globals; they just showed up.  

Anyway, thank you again for solving this mystery and making my life easier!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question