createSheet

fun createSheet(workbook: Workbook, sheetName: String): Sheet

Creates a sheet within the workbook with the name. If a sheet already exists with the same name then a new sheet with name sheetName_n, where n is the current number of sheets in the workbook is created. Sheet names must follow Excel naming conventions.

Return

the created sheet

Parameters

workbook

the workbook, must not be null

sheetName

the name of the sheet