Does anyone know how to import the first worksheet (regardless of name) of an excel file? The following works but only if the first worksheet is named "testdata". This name will change in every workbook
Thanks
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "tbl_importeddata", strPath & strFile, True, testdata$