Thanks for the reply. Yes, I meant a worksheet in an Excel file.
Can you reference a worksheet using a number? My code is set up as
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, Tablename, importstring, No, RangeString
where the variable RangeString has the spreadsheet name...