## Worksheet::Replace(const U16String\&, const U16String\&) method


Replaces all cells' text with a new string.

```cpp
int32_t Aspose::Cells::Worksheet::Replace(const U16String &oldString, const U16String &newString)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldString | const U16String\& | Old string value. |
| newString | const U16String\& | New string value. |

## See Also

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


Replaces all cells' text with a new string.

```cpp
int32_t Aspose::Cells::Worksheet::Replace(const char16_t *oldString, const char16_t *newString)
```


| Parameter | Type | Description |
| --- | --- | --- |
| oldString | const char16_t* | Old string value. |
| newString | const char16_t* | New string value. |

## See Also

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