Hi All!
I was wondering if there was any way to output to a spreadsheet in an Excel workbook?
For example, I’m using this code:
DoCmd.OutputTo acOutputQuery, “qryBanks”, acFormatXLS, “Banks.xls”, False
But what I’d actually like to do is export to one workbook called Institutions.xls and have that query export to sheet Banks, another export to sheet Savings & Loans, etc.
The effect that I’m trying to get is the same as clicking File–>Export and choosing the same excel file name for each query that I’m exporting. When you do it manually, it saves each query in a different sheet with the same of the query as the tab.
TIA!