I have an Access macro which basically opens an Excel spreadsheet and then copies a range of data from that spreadsheet. I want to then import that range of data into an already existing Access table overwriting the info already there.
There are just a couple of caveats...1) In the existing Access table, I want to keep the first record untouched and overwrite everything after it with a range of equal size in terms of rows and columns 2) the first column in the Access table cannot be touched.
I tried the below ....
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Coaches", "C:\A\B\saves\ImportingCoaches.xls", True, "A1:BG1408"
but this appears to be rather stiff in that you can tell it what range you want to copy from Excel but cannot customize it to paste into Access avoiding the first column and begin one row down from the first record.
Does anyone know if this is even possible? or have an idea how I would import the range I specify in Excel to an existing Access table while leaving the most left hand column untouched and pasting one row below the first record in that table.
Any help and or thoughts with this would be greatly appreciated...if my full code in both Access and Excel are needed I would be happy to post.
Thanks again in advance
There are just a couple of caveats...1) In the existing Access table, I want to keep the first record untouched and overwrite everything after it with a range of equal size in terms of rows and columns 2) the first column in the Access table cannot be touched.
I tried the below ....
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Coaches", "C:\A\B\saves\ImportingCoaches.xls", True, "A1:BG1408"
but this appears to be rather stiff in that you can tell it what range you want to copy from Excel but cannot customize it to paste into Access avoiding the first column and begin one row down from the first record.
Does anyone know if this is even possible? or have an idea how I would import the range I specify in Excel to an existing Access table while leaving the most left hand column untouched and pasting one row below the first record in that table.
Any help and or thoughts with this would be greatly appreciated...if my full code in both Access and Excel are needed I would be happy to post.
Thanks again in advance