Can you specify a sheet name in the DoCmd.OutputTo command when trying to export multiple reports to multiple sheets in the same excel file?
If yes, what is the syntax?
Can you specify a sheet name in the DoCmd.OutputTo command when trying to export multiple reports to multiple sheets in the same excel file?
If yes, what is the syntax?
No, cannot. Nor does DoCmd.TransferSpreadsheet allow that.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Sorry, my question was, Can I direct output from multiple reports to multiple sheets in a Excel workbook?
Still, no. Each output will be to a new file.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I didn't pick the title 'Super Moderator' (suppose I could change it) - it was given to me along with permissions to manage all threads on forum. Title doesn't mean I know everything. I still learn a lot here everyday.
Think I learned about using named ranges sometime after this thread posting and tested but didn't go well.
Also, OP wants to export report, not table or query.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.