ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ADO.Net 2.0 version of CopyFromRecordset (https://www.excelbanter.com/excel-programming/382325-ado-net-2-0-version-copyfromrecordset.html)

BillyRogers

ADO.Net 2.0 version of CopyFromRecordset
 
Here is a line of code I used in an Access application using ADO to call a
stored procedure and then open excel and past the recordset to excel.

xlApp.Workbooks(1).Worksheets(1).Cells(2, 1).CopyFromRecordset rst1

Is there a version of CopyFromRecrodset that I can use in VBExpress with
ADO.Net 2.0 to past a DataTable into Excel?

Thanks,


--
Billy Rogers

Dallas,TX

Currently Using SQL Server 2000, Office 2000 and Office 2003


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com