Skip to content

createWorkbook

On this page

Create a new blank workbook, optionally containing an initial worksheet.

createWorkbook(ws?: WorkSheet, wsname?: string): WorkBook

Parameters

NameTypeRequiredDescription
wsWorkSheetNoOptional worksheet to include as the first sheet
wsnamestringNoName for the initial sheet (defaults to "Sheet1")

Returns

WorkBook

A new workbook object