Is it possible to export to a specific worksheet in Excel and overwrite the existing data using the transferspreadsheet method in VBA? I need to export a query to a worksheet that holds the raw data in an Excel workbook. There are several other worksheets in the workbook that connected to the "data" worksheet. Right now this code is creating a new worksheet (data1) in the workbook.
Any help would be greatly appreciated.
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qry_CDL_Sum_Test", "L:\Riskman\Mock Exam\CDL Summary\CD_Loan_Summary.xls", True, "Data"
Any help would be greatly appreciated.