Replace text
Replace every occurrence of a text in a document that is open in Word, e.g. a {{name}} placeholder; the person sees it change. Saving is a separate step.
Command in the Open Office files toolkit · id ooa.office_attach/word_replace_text · 6 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Document | String | Yes | Name of the open document (Letter.docx) or its full path. | |
| Find | String | Yes | Text to find (up to 255 characters). | |
| Replace with | String | No | New text (up to 255 characters); empty removes it. | |
| Match case | Boolean | No | false | Match upper and lower case exactly. |
| Whole word | Boolean | No | false | Only whole words. |
| Timeout (seconds) | Number | No | 60 | Maximum time in seconds. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Number of occurrences replaced. |