Discussion Locked

Writing to Excel from Visual Basic 5.0

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to write data to an existing Excel file using Visual Basic 5.0. However, if the file does not exist, I want to create a file with that name. I do not want to actually open and view the Excel file though. The file needs to be saved. How do I do this and what references do I need to have checked? Please include error checking. Thanks.

1 reply

by suwatniabloy

actually i dont know how to do that in vb5. i just want to share to you how will i do that using powerbuilder. let us say i have a report generated from my program and i want the report to be saved in excel. i just saveas the report in ascii. save as ascii in powerbuilder is like saving in html. then i call a macro from excel that will open the ascii file and a macro that will beautify the report in excel.

This discussion is closed to new replies.