I used to produce an excel file without a hitch. But lately, when I run the same code, the code works fine and produces the excel file but funny enough when I open the spreadheet, it already has a filter on a field. I can still live with that but after I turn off the filter, the spreasheet does not seem normal as I can scroll up or down. My excdel and other files work fine. I have attched a copy of the spreadsheet produced by code. I amusing Excel 2002.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryInit", sPathFile, True
Some help will be appreciated.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryInit", sPathFile, True
Some help will be appreciated.