Per Tim:
>I'm trying to "Exportwithformatting" several reports from Access to Excel. I built a macro, but it will only let me use Excel 2003 Workbook (.xls) and it leaves out the headers and formatting from Access. So I converted the macro to VBA and attempted to export it (in xlsx format), to no avail.
I have not found a way.
On my "Report" screens I offer an "Excel" option that just does an
OutputTo of the report's .RecordSource... but, of course there is no
formatting/headers.
For the Real Deal, I bite the bullet and start coding VBA to create an
empty Excel document and then fill it in from the .RecordSoure -
hand-coding all the column headers, formatting, and so-forth.
First time around takes a lot of man hours, but if you do it right, the
big pieces should be clonable/modifiable for another report in about a
quarter the man hours.
--
Pete Cresswell