Output to Excel

J

jjacob

I am creating a macro that will run seveal select queries and output to
Excel. I'd like to have all the data end up as different sheets within the
Excel workbook. However, after setting up and testing a few lines in the
macro, access wants to delete and recreate the Excel file for each query. Is
there another command to have it insert into the Excel file?

TIA!
 
D

DonD

In the macro, you can write a line for each sheet in the workbook. Each would
be a TransferSpreadsheet. The Table Name would contain the table or query to
be exported, and all would contain the same name of the workbook.xls.

Each shoud appear as a separate sheet in the workbook.
 

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