How to programmatically generate Excel report

C

Chlaris

Dear all,

I have several clients with different Ms Office version.
How do I programmatically generate Excel report ?
Thanks.

Chlaris
 
M

Maurice

use the Object instead of a reference to a Excel library that way Access will
check for itself which version of Excel is present. something like this:

Dim objXL as Object

Set objXlL=("Excel.Application")
objXL.visible=true


from here you have your options to work within the excel workbook from Access

hth
 
L

Larry Daugherty

Maurice

Your advice is right on regarding the running code.

Some related thoughts:
For the design and development phases I recommend the Early Binding
with a reference to Excel. That way, the developer gets the benefit
of Intellisense in the IDE. After the design is pretty well set then
convert to your recommended Late Binding to get the benefits you've
already revealed.

HTH
 
C

Chlaris

Thanks Maurice, it works.

Maurice said:
use the Object instead of a reference to a Excel library that way Access
will
check for itself which version of Excel is present. something like this:

Dim objXL as Object

Set objXlL=("Excel.Application")
objXL.visible=true


from here you have your options to work within the excel workbook from
Access

hth
 
M

Maurice

Hi Larry,

Hmmm did I forgot about that tip? Should be really starting point 1. Thanks
for pointing that out. Intellisense where did I hear about that before ;-)
 

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