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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to Excel

Status
Not open for further replies.

joel009

Programmer
Jul 7, 2000
272
US
Is there a way in VB to export a recordset directly to Excel with out going through the rows and columns? Just a straight dump to an Excel template. I know you can do it in Access VB but haven't been able to accomplish it in VB.

Thanks,

Joel
 
johnwm,
It looks like the only way shown there is by going through Access. Do you know of a way to go directly from a VB6.0 recordeset to Excel? We are thinking of using a template from Excel but don't want to include the use of Access.

Thanks

Joel
 
I should have been clearer. That page gives an overview of Excel and ADO - at the bottom of the page are the further references.

They eventually point to :

where you will find details for transferring data from VB by numerous methods to suit different requirements and different data quantities
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
johnwm,
I had already found the links and the info I needed, I think, before you replied. Trying it out now. For others with the same question look at reference 246335, CopyFromRecordset.

Thanks John,

Joel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top