print ADO recordset in Excel

G

Guest

Instead of Debug.Print rst.fields(0)
how can i open a new Excel workbook and print the field in the first cell?


--
Billy Rogers

Dallas,TX

Currently Using Office 2000 and Office 2003
 
G

Guest

Try this:

Dim xlApp As New Excel.Application
xlApp.Workbooks.Add
xlApp.Workbooks(1).Worksheets(1).Range("A1") = rstFields(0)
xlApp.Visible = True

Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top