iainmacleod
asked on
MS Access export multiple queries to separate worksheets in Excel workbook
I am currently using docmd.output to and exporting various queries in to separate Excel workbooks. Ideally I would like to export these queries to separate worksheets within one workbook and name the worksheets with the same name as the query.
This is what I do currently.
DoCmd.OutputTo acOutputQuery, "Bens CC", "Excel97-Excel2003Workbook (*.xls)", "z:\mi\BensCC.xls", False, "", , acExportQualityScreen
DoCmd.OutputTo acOutputQuery, "Cab CC", "Excel97-Excel2003Workbook (*.xls)", "Z:\MI\CABCC.XLS", False, "", , acExportQualityScreen
Thanks for any advice
This is what I do currently.
DoCmd.OutputTo acOutputQuery, "Bens CC", "Excel97-Excel2003Workbook
DoCmd.OutputTo acOutputQuery, "Cab CC", "Excel97-Excel2003Workbook
Thanks for any advice
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER