# Create Workbook

Learn how to create a workbook using DsExcel through a sample code.

## Content





You can create a new instance of a workbook using the [Workbook](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/Workbook.html) class.

A workbook may contain one or more worksheets that are stored within the Worksheets collection. By default, a workbook contains one empty worksheet with the default name **Sheet1**, which is created as soon as a new instance of the Workbook class is created.

Refer to the following example code to create a workbook using DsExcel Java.

```Java
Workbook workbook = new Workbook();
```

In order to add more worksheets to your workbook, refer to [Work with Worksheets](/document-solutions/java-excel-api/docs/online/Features/ManageWorksheet/WorkWithSheets) in this documentation.

## See Also

[Open and Save Workbook](/document-solutions/java-excel-api/docs/online/Features/ManageWorkbook/OpenSaveProtectWorkbook)