Export data to CSV file in VB6 using EasyXLS component! Spreadsheets in VB6.
https://www.easyxls.com/manual/tutorials/vb6/export-data-to-csv-file.html