I have a query which I am exporting to excel using the TransferSpreadSheet command and I am wondering if there is also a way to format the data in Excel.
What I would like to do is after transfering my query, is to replace the first row (which contains my query Field Names) with a title with some names that are more descriptive and specific to the data in each column.
Also, I would like to size the columns to auto fit and center the text in all columns.
My code for exporting the query is as follows:
DoCmd.TransferSpreadsheet acExport, cSpreadsheetTypeExcel9,
strTemp, "C:\" & strFileName & ".xls"
Is there a painless way to do the formatting that I mentioned above?
Thanks
What I would like to do is after transfering my query, is to replace the first row (which contains my query Field Names) with a title with some names that are more descriptive and specific to the data in each column.
Also, I would like to size the columns to auto fit and center the text in all columns.
My code for exporting the query is as follows:
DoCmd.TransferSpreadsheet acExport, cSpreadsheetTypeExcel9,
strTemp, "C:\" & strFileName & ".xls"
Is there a painless way to do the formatting that I mentioned above?
Thanks