Action group: Word
The action replaces all occurrences of a string in the document with another string.
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Context | Action context for working with a Word document. | Robin.Word | Word context | Yes |
Replace | Text to be replaced. The maximum text length is 254 characters. | Robin.String | Yes | |
To | The new value for the text to be replaced. The maximum text length is 254 characters. | Robin.String | Yes | |
Replace match | Selecting the appropriate value will replace all matches or just the first one. | Robin.String | Yes |
In protected documents, the action works only on unlocked fields.
Task
There is a Word-document with the text of names. It is necessary to replace the name Alex with Petr (all matches).
Use the actions "Open document", "Replace text", "Save as".
The program robot completed successfully. The required text has been replaced.