Export Excel with pivot table using EasyXLS component! XLSX, XLSM, XLSB, XLS file in VB6.
https://www.easyxls.com/manual/tutorials/vb6/create-excel-pivot-table.html