From what I have read and understand, "acSpreadsheetTypeExcel12" is for A2007. (with xlsx extension)
If you use "acSpreadsheetTypeExcel12" in A2010, there will be or seems to be problems opening the Excel workbook.
I looked at a lot of posts and using "acSpreadsheetTypeExcel12" in A2007 seemed to work, but in A2010 caused problems opening the workbook.
I'll look to see if I can resurrect a confuser with A2007 to do some testing....
I started using "Docmd.OutputTo" instead of the Docmd.transferspreadsheet function. Then I use automation to format the Excel worksheet. I like it better.....
The command for exporting a query to Excel worksheet looks like:
Code:
DoCmd.OutputTo acOutputQuery, "EQ_StatementMonthlyAll", acFormatXLSX, strSaveFileName, False
I use folder picker code to select the folder where I want to save the file, then call the code to do the formatting and shazam!! Its done.