Excel Application as VBA Object

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I have imported a vba module into a new database however
the code will not run because when it gets to the line:

Dim objxl As Excel.Application

I get this
Compile error:
User defined type not defined

Does anybody Know what the problem is, the code works fin
on the other database with this
 
You need to add the Excel Object Library into the References Collection of
your database.

Open any code module and use the Menu Tools / References ... to get the
Reference dialog.
 

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

Similar Threads


Back
Top