PRB: Error Message "User-defined Type Not Defined"

Article translations Article translations
Article ID: 178726 - View products that this article applies to.
This article was previously published under Q178726
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

The following error message displays on the code line that dimensions a user-defined variable:
"Compile Error
User-defined type not defined"

CAUSE

The most common cause of this error message is the Object library that contains the variable information was not referenced in the project.

RESOLUTION

To correct this error, reference the Object library in your project.

STATUS

This behavior is by design.

MORE INFORMATION

Use the following steps to reference the Object library in your project:

  1. From the Project menu, click References. The References dialog box appears.
  2. Check the appropriate object library in the Available References list box. If your object library is not in the list, click the Browse button to add the file.

REFERENCES

If you are trying to use the object library from a custom ActiveX DLL file, the following article in the Microsoft Knowledge Base shows you how to register the file:
173407 HOWTO: Register Your Custom ActiveX DLL from a Client

Properties

Article ID: 178726 - Last Review: February 24, 2014 - Revision: 3.0
APPLIES TO
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
Keywords: 
kbnosurvey kbarchive kbprb KB178726

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com