UiPath Activities

The UiPath Activities Guide

Replace Text

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

Input

  • Search - The text to be replaced. Only String variables and strings are supported.
  • Replace - The text to replace with. Only String variables and strings are supported.

Result

  • Found - A boolean variable that indicates whether the text to be replaced was found or not.

Common

  • DisplayName - The display name of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

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:

Configuring the Activity

In the Body of the Activity

  • Search for - Click Plus plus button 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 plus button 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

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 21 days ago


Replace Text


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.