Transfer 2 querys to the excel workbook but to different sheets

T

Ticotion

Hi

I have a problem. I use the following code to transfer a query to an excel
sheet.

Private Sub Command9_Click()
DoCmd.OutputTo acOutputQuery, "6_FORECAST_TO_VENDOR", acFormatXLS,
"Forecast.XLS", True
End Sub

What I want is to transfer yet another query to the same excel workbook but
another sheet. How can this be done?

regards
Ticoton
 

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