Skip to main content

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​

InputTypeRequiredDefaultWhat it is
DocumentStringYesName of the open document (Letter.docx) or its full path.
FindStringYesText to find (up to 255 characters).
Replace withStringNoNew text (up to 255 characters); empty removes it.
Match caseBooleanNofalseMatch upper and lower case exactly.
Whole wordBooleanNofalseOnly whole words.
Timeout (seconds)NumberNo60Maximum time in seconds.

Outputs​

OutputTypeWhat it is
countNumberNumber of occurrences replaced.