Visual Basic Error 5003

I created a VB5 application that runs fine on one computer, but got (unexpected error 5003) on another as soon as the application was started. The application does not use any extra components except for msvbvm50.dll. What can cause this error?

In the first procedure that's being place the following:
Msgbox "It made it to Sub Main"
At the end of that procedure place one like this:
MsgBox "Exiting Sub Main"

Compile and test. Sometimes this is the only way. Using this method, you can narrow it down to the line. Once you do, comment with the line, then if you can't figure out what's wrong with it, post it in a comment here.

Featured Post

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Introduction
While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library. This article will introduce you to the SC library a…

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…

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…

This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel.
Part 1 of this series discussed basic error handling code using VBA.
http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…