UiPath.Word.Activities.WordReplaceText
Description
Replaces all occurrences of a string within a document with another string. Can only be used in the Word Application Scope activity.
Properties
Common
- DisplayName - The display name of the activity.
Input
- Replace - The text to replace with. Only String variables and strings are supported.
- Search - The text to be replaced. Only String variables and strings are supported.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Options
- Replace all - If selected, replaces all of the occurrences of the searched text. If cleared, only the first occurrence is replaced. By default, this check box is selected.
Result
- Found - A boolean variable that indicates whether the text to be replaced was found or not.
UiPath.Word.Activities.WordReplaceText
Description
Replaces all occurrences of a text in a Word document with another specified text. This activity must be added inside a Use Word File activity.
To learn how to use this activity:
- Create a project using the Complete Word Template from Excel and Email project template.
- See Tutorial: Working with Word Automation.
Configuring the Activity
In the Body of the Activity
- Search for - Click Plus
on the right side of the field, and then, from the menu, choose one of the available options to indicate the text to find:
- Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains the text, or indicate a field from a selected email in Outlook that contains the text.
- Use Saved Value - Select a value that you previously saved for later use in the project.
- Text - Enter the text in the Text Builder.
- Ask when run - Prompt for the text when the project is executed.
- Open in Advanced Editor - Enter a VB expression.
- Replace with - Click Plus
on the right side of the field, and then, from the menu, choose one of the available options to indicate the text to replace with:
- Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains the text, or indicate a field from a selected email in Outlook that contains the text.
- Use Saved Value - Select a value that you previously saved for later use in the project.
- Text - Enter the text in the Text Builder.
- Ask when run - Prompt for the text when the project is executed.
- Open in Advanced Editor - Enter a VB expression.
In the Properties Panel
Common
- DisplayName - The name displayed for the activity in the Designer panel.
Input
- See the options in the body of the activity.
Misc
- Private - If selected, the data used in the activity is not logged by StudioX.
Result
- Found - A Boolean value that is TRUE if the text was found in the document or FALSE if the text was not found. You can save the value for later use in the project.
Updated 6 months ago