Excel Automation Basics

P

prototype

This should be an easy one but I searched the board and was unable to find
anything that directly addressed my question. What is the best way to export
a recordset to excel? I simply want to export everything in the recordset
including the headers to excel. I need to do this in VBA.

Thanks,
 
P

Pat Hartman \(MVP\)

The TransferSpreadsheet Method/Action will do this. You just supply the
table/query name and the name of the file you want to create along with some
other optional arguments.
 
Top