Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dave Patrick wrote: The code is actually running in an Excel spreadsheet and I'm opening another spreadsheet and wanting to paste the data into an Access table. I would still use the TransferSpreadsheet Method. Automate the server application and get it to 'pull' data from the client? Wrong mental model, methinks. Better to use data access technology to 'push' data to the client e.g. Sub Just_Four_Lines() Dim con As Object Set con = CreateObject("ADODB.Connection") con.Open _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=D:\DATA\Access\test.mdb" con.Execute _ "INSERT INTO tblNames" & _ " SELECT F1, F2, F3 FROM [Excel 8.0;HDR=NO;" & _ "Database=D:\DATA\Excel\SomeWB.xls;].[A1:C3];" End Sub Jamie. -- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot paste between 2 excel spreadsheets w/o office clipboard ope | Excel Discussion (Misc queries) | |||
unable to copy/paste in excel once clipboard becomes full | New Users to Excel | |||
how do I paste formulas in excel clipboard? | Excel Discussion (Misc queries) | |||
How do I paste from clipboard to range using Excel VBA | Excel Programming | |||
Paste Clipboard from Word to last row in excel | Excel Programming |