Export Excel file and grouping rows or columns in sheet from command prompt using EasyXLS component! XLSX, XLSM, XLSB, XLS file.
https://www.easyxls.com/manual/tutorials/vbs/excel-group-rows-columns.html