Export to Excel - Multiple Worksheets

alexfwalker81

Member
Local time
Today, 08:38
Joined
Feb 26, 2016
Messages
107
I have 4 crosstab queries which I can export successfully to .xlsx, using ExportWithFormatting in a macro. However, I'd really like to be able to write the first crosstab to a new workbook, then append the following 3 crosstab queries as subsequent worksheets within the workbook. Is that possible?
 
One way you can do this is to use Excel automation, combined with the CopyFromRecordset method.
 
Hi. Maybe you could also try using the TransferSpreadsheet method.
 

Users who are viewing this thread

Back
Top Bottom