![]() |
Class doesn't support Automation...
Hi,
I am trying to connect to an access 2000 db using Excel 97 and query a table in the database and paste the recordset into a worksheet. Here is the code I have so far... Code:
Sub checkup() Class doesn't support automation: Sheets(2).Range(Cells(1, 2), Cells(myCnt, 3)).CopyFromRecordset Rs Any ideas on how to either fix or get around this problem??? |
Class doesn't support Automation...
Nathan,
I think CopyFromRecordest was not in XL97, introduced in XL2000. -- HTH Bob Phillips "Nathan Stevens" wrote in message ... Hi, I am trying to connect to an access 2000 db using Excel 97 and query a table in the database and paste the recordset into a worksheet. Here is the code I have so far... Code:
Sub checkup() However, an error occurs at the line below saying that the Class doesn't support automation: Sheets(2).Range(Cells(1, 2), Cells(myCnt, 3)).CopyFromRecordset Rs Any ideas on how to either fix or get around this problem??? |
All times are GMT +1. The time now is 01:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com