Click to See Complete Forum and Search --> : Save data to Excel format


Alejandro Ochoa
June 21st, 2001, 04:25 PM
Hi all,

I have some calculated data from a SQL in VB, kept in a structure, is there a way that I can save that data into an .xls file?.

If someone knows how to do it, can you give me some advice and perhaps some sample code?.

Thanks in advance.

Alejandro.

SACEIT
June 21st, 2001, 04:44 PM
add to your projetc a reference to Excel library
type in
dim myXls as Excel.Application
Put caret over excel.application and press F1