The sheet number 2 is constantly made with different names and I was wondering if the transferspreadsheet command would be able to pick out data by the sheet number instead of the sheet name.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Tbl_EXCELDATA", "MyFile.xls", True, "Sheet2!" (Sheet is name Data_1***, *** is constantly changing)
Thanks.
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Tbl_EXCELDATA", "MyFile.xls", True, "Sheet2!" (Sheet is name Data_1***, *** is constantly changing)
Thanks.