Visual Basic Error

C

ChuckW

Hi,
I am trying to work on a app built by someone else. There is a button for
uploading an xml file. When I click on this button Visual Basic Compile
Error comes up that says "User Defined Not Defined" it then highlights the
following line:

dim myzip as ziplight

Can someone help? I dont know what this means.
Thanks,
 
T

Tom van Stiphout

Actually, the error probably is "User defined TYPE not defined". What
is a type? It's a data type, like Integer or String. In this case it's
"ziplight".
For VBA to work with non-built-in types like this, you have to "set a
reference" to tell VBA that there are some other types to work with.
Code window > Tools > References
Chances are, this window shows a broken reference, meaning it wants to
include something that will tell VBA about Ziplight but it's not found
on your computer.
Install the software (presumably some zipcode software; type in
Ziplight in Google) and the reference should work again, and you
should be able to compile the app (or at least get past this error).

-Tom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top