G
Guest
This is a bit weird.
I am exporting a report to Excel using the following code:
DoCmd.OutputTo acOutputReport, strReportName, _
acFormatXLS, strWorkbookName, True
This worked fine until I added a couple of unbound text boxes to the report
header. Now, the columns in the worksheet are not in the same sequence as
those in the report; rather, source columns {1st, 2nd, 3rd, 4th, 5th, 6th,
7th, 8th} now map to worksheet columns {A, B, H, I, J, C, D, E, F, G}.
How can I get the columns to export in the original sequence?
Thanks!
I am exporting a report to Excel using the following code:
DoCmd.OutputTo acOutputReport, strReportName, _
acFormatXLS, strWorkbookName, True
This worked fine until I added a couple of unbound text boxes to the report
header. Now, the columns in the worksheet are not in the same sequence as
those in the report; rather, source columns {1st, 2nd, 3rd, 4th, 5th, 6th,
7th, 8th} now map to worksheet columns {A, B, H, I, J, C, D, E, F, G}.
How can I get the columns to export in the original sequence?
Thanks!