//create a new workbook Workbook workbook = new Workbook(); // GcExcel supports open xlsm file workbook.open("macros.xlsm"); // Macros can be preserved after saving workbook.save("macros-exported.xlsm");
//create a new workbook var workbook = Workbook() // GcExcel supports open xlsm file workbook.open("macros.xlsm") // Macros can be preserved after saving workbook.save("macros-exported.xlsm")