PRB: Error Message "User-defined Type Not Defined"
This article was previously published under Q178726
This article has been archived. It is offered "as is" and will no longer be updated.
The following error message displays on the code line that dimensions auser-defined variable:
User-defined type not defined"
The most common cause of this error message is the Object library thatcontains the variable information was not referenced in the project.
To correct this error, reference the Object library in your project.
This behavior is by design.
Use the following steps to reference the Object library in your project:
From the Project menu, click References. The References dialog box appears. 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.
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 toregister the file:
HOWTO: Register Your Custom ActiveX DLL from a Client
kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbCompiler
Article ID: 178726 - Last Review: 02/24/2014 08:31:37 - Revision: 3.0
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