HSSFSheet sheet = workbook.createSheet("list");
CellRangeAddress ce = CellRangeAddress.valueOf("A2:J2");
sheet.setAutoFilter(ce);
其中需要注意的是"A2:J2",A2表示起始列J2表示结束列
2024-03-22 10:54:52
HSSFSheet sheet = workbook.createSheet("list");
CellRangeAddress ce = CellRangeAddress.valueOf("A2:J2");
sheet.setAutoFilter(ce);
其中需要注意的是"A2:J2",A2表示起始列J2表示结束列