## Worksheet::SetName(const U16String\&) method


Gets or sets the name of the worksheet.

```cpp
void Aspose::Cells::Worksheet::SetName(const U16String &value)
```

## Remarks


The max length of sheet name is 31. And you cannot assign same name(case insensitive) to two worksheets. For example, you cannot set "SheetName1" to the first worksheet and set "SHEETNAME1" to the second worksheet.
## See Also

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


Gets or sets the name of the worksheet.

```cpp
void Aspose::Cells::Worksheet::SetName(const char16_t *value)
```

## Remarks


The max length of sheet name is 31. And you cannot assign same name(case insensitive) to two worksheets. For example, you cannot set "SheetName1" to the first worksheet and set "SHEETNAME1" to the second worksheet.
## See Also

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