Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export reports as worksheets into one excel file

Status
Not open for further replies.

jozino01

Technical User
Apr 25, 2003
257
CA
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top