cells.hideRow(2); //Hiding the 3rd row of the worksheet
cells.hideColumn(1); //Hiding the 2nd column of the worksheet
//Saving the modified Excel file in default (that is Excel 2003) format
workbook.save("data/hideUnhideCells_Aspose.xls");
//Print message
System.out.println("Rows and Columns hidden successfully.");
}