Action group: Office
The action replaces all occurrences of a string in the document with another string
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Context for working with a document | Robin.OpenTextDo c | Yes | |
Replace | The text to be replaced | Robin.String | Yes | |
On | The new value for the text to be replaced | Robin.String | Yes | |
Replace match | Selecting the appropriate value will replace all matches or just the first one | Robin.String | Yes |
None.
There is a file test.docx with a list of names.
It is necessary to open the document and replace the name Maria with the name Olga. Next, save the document and close it.
Use the "Open", "Replace text", "Save", "Close" actions.
The program robot completed successfully.
The required text in the document is replaced. The file is saved and closed.