# Create and Delete Tables

Learn how easily you can create and delete tables in a spreadsheet using DsExcel.

## Content

In DsExcel .NET, you can create and delete tables in spreadsheets using the [Add method](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ITables.Add.html) of the [ITables interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ITables.html) and the [Delete Method](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ITable.Delete.html) of the [ITable Interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.ITable.html), or simply transform a cell range into a table by specifying the existing data lying in a worksheet.
Refer to the following example code to create and delete tables in a worksheet.

```csharp
//Create workbook and access its first worksheet
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.Worksheets[0];
//Add first table
ITable table1 = worksheet.Tables.Add(worksheet.Range["A1:E5"], true);
//Add second table
ITable table2 = worksheet.Tables.Add(worksheet.Range["F1:G5"], true);
//Delete second Table
worksheet.Tables[1].Delete();
```

> !type=note
> **Note:** DsExcel also supports defined names, which can be used to name the table. For more information, see [Defined Names](/document-solutions/dot-net-excel-api/docs/online/Features/DefinedNames).