Compile error

Danielf

Registered User.
Local time
Today, 23:11
Joined
Feb 21, 2000
Messages
103
Hi,

I have the following code in an form:

Dim appExcel As Excel.Application

the purpose of the code is to open an excel file.

When I am running the form, I am receiving the following error:

" Compile error
user defined type not defined"

Where is my error?

Thanks for help.

Daniel
 
Have you added a reference to excel object library?
 
Go to the tools menu in the VB editor and select references. go through that list till you find the microsoft excel object library and check the box next to it.
 
Go to the tools menu in the VB editor and select references. go through that list till you find the microsoft excel object library and check the box next to it.

Hi Chergh,

Thanks a lot, it works

Have a nice day

Daniel
 

Users who are viewing this thread

Back
Top Bottom