Help putting multiple reports into one spreadsheet

  • Thread starter Angela 'Angel' Brown
  • Start date
A

Angela 'Angel' Brown

Please can someone help me with the code to get 3 reports into one xls
spreadsheet.

I've managed to get the code to get one report into a spreadsheet. Or many
queries/tables into a spreadsheet. but not many reports into one spreadsheet.
It doesn't matter if they are in different tabs in the xls spreadsheet or not.

Please help!!

Thanks
 
S

scubadiver

I have added an extra piece to include the year and time in the file name
(just FYI).

You can have as many TransferSpreadsheet codes as you like.



Dim sToday As String

sToday = Format(Now, "yyyy.mm.dd hh.mm")

DoCmd.TransferSpreadsheet acExport, _
acSpreadsheetTypeExcel9, "QUERY NAME", _
"C:\DIR LOCATION - " & sToday & ".xls", True, "SHEET NAME"
 

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