Reading Excel data from Project

G

glenn

Jack,

When I put the following line of code into VBA via Project, I
a message stating "Compiler Error - User Defined Type Not
Defined"

Dim xlApp As Excel.Application

Can you help me out?

Thanks,
glenn
 
G

Glenn

Hi again,

OK, I selected the Microsoft Excel Object from Tools, References in the VBE

Can you tell me what the syntax would be to create an Excel object?

I tried Dim xlApp As Application.Excel and I got a type mismatch error.

Thanks again,
glenn
 
J

Jan De Messemaeker

Dim xlAPP as excel.application
set xlapp=createobject("Excel.application")
HTH
 

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