Hello,
I'm using the code below to transfer a query to a specific Excel file. It works, and when I click the command button again, it overwrites the existing Excel sheet. However, after several times of overwriting the Excel sheet, it stops working or it does anymore overwrite.
Is there an expiration for the code? I mean, does it work for only a maximum number of times? Say it can overwrite only up to 5 times. After which, the code won't work anymore.
DoCmd.TransferSpreadsheet acExport, 10, "queryname", "destinationExcelFile", False, ""
imdl
I'm using the code below to transfer a query to a specific Excel file. It works, and when I click the command button again, it overwrites the existing Excel sheet. However, after several times of overwriting the Excel sheet, it stops working or it does anymore overwrite.
Is there an expiration for the code? I mean, does it work for only a maximum number of times? Say it can overwrite only up to 5 times. After which, the code won't work anymore.
DoCmd.TransferSpreadsheet acExport, 10, "queryname", "destinationExcelFile", False, ""
imdl