> For the complete documentation index, see [llms.txt](https://docs.roboteasy.tech/studio-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboteasy.tech/studio-en/studio/objetos/word/buscar-e-substituir.md).

# Find and Replace

Object for replacing words or sentences in Word files.

## Settings&#x20;

{% hint style="info" %}
This object depends on the **"New Word"** or "**Open Word**" object to work.
{% endhint %}

![](https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRKcZBCSfHjT8BRPnSe%2F-MVRLZTtsE3Z2Hn6jEKW%2F-MVS5f1eOaJxVi8zR7lj%2Fimage.png?alt=media\&token=c0ed94e3-b82d-41d5-b1af-8fb62b74b46a)

| Field              | Descriptive                                             |
| ------------------ | ------------------------------------------------------- |
| Title              | Object title                                            |
| Select Main Object | Option to select the object created with "**New Word**" |
| From               | Text that will be searched                              |
| To                 | Text that will replace the original one                 |

## Example

To find and replace text in a Word file, you must have a pre-existing file and follow these steps:

1 - Select the "**Open Word**" object from the "**Word**" menu and drag it to your working area.

* First you should define a singular object name in the **"Object Identifier Name"** field and select the file to open.&#x20;
* If the "**Run in Background**" option is selected, it will run in the background

2 - Then select the **"Find and Replace"** object, select the main object defined when opening the file, enter the text to be searched in the file and, finally, the text that will replace the original one.
