c# 清楚表格内容

 

 ExcelWorksheet currentWorksheet = pck.Workbook.Worksheets[1];

//拷贝前一个sheet
currentWorksheet = pck.Workbook.Worksheets.Copy(currentsheetName, "currentWorksheet");

currentWorksheet.Cells["A2:C40000"].Clear(); // 拷贝的内容去掉

posted @ 2021-12-16 13:47  小小小菜鸟1  阅读(215)  评论(0编辑  收藏  举报