## WorksheetCollection::GetSheetByCodeName(const U16String\&) method


Gets the worksheet by the code name.

```cpp
Worksheet Aspose::Cells::WorksheetCollection::GetSheetByCodeName(const U16String &codeName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| codeName | const U16String\& | [Worksheet](../../worksheet/) code name. |

## ReturnValue

The element with the specified code name.

## See Also

* Class [Worksheet](../../worksheet/)
* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WorksheetCollection::GetSheetByCodeName(const char16_t*) method


Gets the worksheet by the code name.

```cpp
Worksheet Aspose::Cells::WorksheetCollection::GetSheetByCodeName(const char16_t *codeName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| codeName | const char16_t* | [Worksheet](../../worksheet/) code name. |

## ReturnValue

The element with the specified code name.

## See Also

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