
## replace(self, old_string, new_string) {#System.String-System.String}

Replaces all cells' text with a new string.



```python

def replace(self, old_string, new_string):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| old_string | System.String | Old string value. |
| new_string | System.String | New string value. |



### See Also
* module [`aspose.cells`](../../)
* class [`Worksheet`](/cells/python-net/aspose.cells/worksheet)
