Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting recordset to Excel from VB App

Status
Not open for further replies.

netcashin

Programmer
Nov 13, 2000
159
US
I have a recordset that I want to export out to an Excel spreadsheet from VB app. Any help???
 
You can open your excel workbook like a database using the ODBC driver and populate a worksheet with your recordset. Or you can open up the excel application using the object model and populate the cells (I always use the macro recorder to capture what I want to do and then duplicate that in my code).
 
sodakotahusker -- thanks

Will this work when I am creating a new excel spreadsheet on the fly? I am needing to use an excel spreedsheet as a reporting mechanism. And the spreadsheet would be new each time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top