Hi,
You can try using the acSpreadsheetTypeExcel12
instead of acSpreadsheetTypeExcel12Xml
-
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, strTable, strPath & strWorkbook
Without using the common string table, Access will export the values directly as numeric or text values. This will help to avoid the problem of the "corrupted" material and the requirement for repair.
There may be an increase in your file size.
Try this code once and let me know if it works.
Best Regards.