hi
so im building a method to import an excel spreadhseet into my database
so far i have got the method to select the file and import it, and im curious when i use the DoCmd.transferSpreadSheet can i select multiple ranges in a single sheet.
the issue i have is, the sheet im trying to import has header halfway down the form, also i only want some of the data, so can i do something like select the sheet and choose range
so im building a method to import an excel spreadhseet into my database
so far i have got the method to select the file and import it, and im curious when i use the DoCmd.transferSpreadSheet can i select multiple ranges in a single sheet.
the issue i have is, the sheet im trying to import has header halfway down the form, also i only want some of the data, so can i do something like select the sheet and choose range
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Table_RunIns", selectFile(), Sheet(5)"A2:k34" & "A56:K150", True