Hi,
I use the following command:
DoCmd.OutputTo acOutputQuery, "REVENUE DETAIL", acFormatXLS, True
to export report to excel (it creates one excel file).
How should I modify the code if I want to export two or three reports into one excel file, each report as a separate worksheet? I want to open the new excel file after export is done.
Any hint, please?
I use the following command:
DoCmd.OutputTo acOutputQuery, "REVENUE DETAIL", acFormatXLS, True
to export report to excel (it creates one excel file).
How should I modify the code if I want to export two or three reports into one excel file, each report as a separate worksheet? I want to open the new excel file after export is done.
Any hint, please?