VBA to bring Excel (range) TABLE back into Access

CedarTree

Registered User.
Local time
Today, 03:21
Joined
Mar 2, 2018
Messages
440
Hi - I have some good coding that takes a recordset in Access and plugs it into a range in Excel (so that I don't have to move cell by cell). But does anyone have a trick to take a whole range in Excel and suck it back into an Access table, without going cell by cell?
Thanks!
 
So to transfer from recordset to excel, you can just use this:
ExcelRange.CopyFromRecordset RecordsetObjectName

Nothing similar to go back to Access? For Transfer Spreadsheet, I wonder if you have to save the Excel file each time (say you're running back calcs)?

I'd like to import from Excel while the Excel file / object is open.
 
So I have two recordsets open using ADO. One holds the Excel table. One is referring to an Access table. is there a quick way to say Contents of RS1 get added to Contents of RS2?
 
It doesn't seem to work if you have a worksheet open as an object.
 

Users who are viewing this thread

Back
Top Bottom