G
Guest
I want to import SOME columns of excel file (i.e. a1:a100;c1:c100;e1:e100) to access table with some number of columns(i.e. three). I tried do with "DoCmd.TransferSpreadsheet" like this:
XLSheet = "Sheet1!A1:A100;Sheet1!C1:C100;Sheet1!E1:E100"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, _
tableName, XLFile, False, XLSheet
But it doesn't work(I get error message)
Any suggestions of how can I do it
XLSheet = "Sheet1!A1:A100;Sheet1!C1:C100;Sheet1!E1:E100"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, _
tableName, XLFile, False, XLSheet
But it doesn't work(I get error message)
Any suggestions of how can I do it