Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 301 Bytes

Creating-Multiple-Worksheets.md

File metadata and controls

11 lines (9 loc) · 301 Bytes

MultipleSheets.jpg

var workbook = new XLWorkbook();
foreach (var wsNum in Enumerable.Range(1, 5))
{
  var ws = workbook.Worksheets.Add("Sheet " + wsNum.ToString());
}

workbook.SaveAs("MultipleSheets.xlsx");