Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I've only just started playing about with ADODB.Recordsets, specifically to import data from other workbooks. I notice though that queries don't return data if the cells contain formulae or cell references. Similarly, none of the 'PasteSpecial' functionality seems available. Is this to do with any of the settings I'm using (see last two lines of the sample code below in particular) or is this a restriction of the ADODB.Recordset object? ' Create the connection string stConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & stFullName & ";" & _ "Extended Properties=""Excel 8.0;HDR=No"";" 'Get data stSQL = "SELECT * FROM & [DataSheet$A1:E20]" Set rsData = New ADODB.Recordset rsData.Open stSQ, stConnect, adOpenForwardOnly, adLockReadOnly, adCmdText 'Paste data rgRange.CopyFromRecordset rsData Regards, JvL |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete ADODB Recordset | Excel Programming | |||
ADODB Recordset Function | Excel Programming | |||
0 with ADODB Recordset | Excel Programming | |||
adodb.recordset with excel | Excel Programming | |||
ADODB Recordset | Excel Programming |