In this example, the range to be imported is the union of column C and D.
But how can I specify that I can to import the union of A,c and D?Code:Application.DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, _ MyTable, Application.CurrentProject.Path & "\" & MyFile, True, "C:D"
I first tried "A:A,C" but it doesn't recognize this as a range.




" but it doesn't recognize this as a range.
Reply With Quote