This project has moved. For the latest updates, please go here.

Creating Multiple Worksheets

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");

Last edited Sep 10, 2010 at 6:13 PM by MDeLeon, version 2