## WorksheetCollection::Insert(int32_t, SheetType) method


Insert a worksheet.

```cpp
Worksheet Aspose::Cells::WorksheetCollection::Insert(int32_t index, SheetType sheetType)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | The sheet index |
| sheetType | SheetType | The sheet type. |

## ReturnValue

Returns an inserted worksheet.

## See Also

* Class [Worksheet](../../worksheet/)
* Class [Vector](../../vector/)
* Enum [SheetType](../../sheettype/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::Insert(int32_t, SheetType, const U16String\&) method


Insert a worksheet.

```cpp
Worksheet Aspose::Cells::WorksheetCollection::Insert(int32_t index, SheetType sheetType, const U16String &sheetName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | The sheet index |
| sheetType | SheetType | The sheet type. |
| sheetName | const U16String\& | The sheet name. |

## ReturnValue

Returns an inserted worksheet.

## See Also

* Class [Worksheet](../../worksheet/)
* Class [Vector](../../vector/)
* Enum [SheetType](../../sheettype/)
* Class [U16String](../../u16string/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::Insert(int32_t, SheetType, const char16_t*) method


Insert a worksheet.

```cpp
Worksheet Aspose::Cells::WorksheetCollection::Insert(int32_t index, SheetType sheetType, const char16_t *sheetName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | The sheet index |
| sheetType | SheetType | The sheet type. |
| sheetName | const char16_t* | The sheet name. |

## ReturnValue

Returns an inserted worksheet.

## See Also

* Class [Worksheet](../../worksheet/)
* Class [Vector](../../vector/)
* Enum [SheetType](../../sheettype/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
