Subscribe

UiPath Activities

The UiPath Activities Guide

Replace Text in Presentation

UiPath.Presentation.Activities.FindAndReplaceTextInPresentation

Replaces a specified text within a presentation with another text. This activity must be added inside a Use PowerPoint Presentation activity.

Properties

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Input

  • Find what - Text to be replaced. Only String variables and strings are supported. Alternatively, in StudioX, click Plus plus buttonplus button on the right side of the field, and then select one of the options from the menu:
    • Data from the Project Notebook, a parent Excel file or email account. For example, select a cell in an Excel file to use the value in that cell.
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project..
    • Text - Enter the text in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Presentation - Presentation in which to replace the text. In StudioX, click Plus plus buttonplus button on the right side of the field, and then select the presentation file in which to replace text. Alternatively, you enter a VB expression.
  • Replace with - The text to replace with. Only String variables and strings are supported. Alternatively, in StudioX, click Plus plus buttonplus button on the right side of the field, and then select one of the options from the menu:
    • Data from the Project Notebook, a parent Excel file or email account. For example, select a cell in an Excel file to use the value in that cell.
    • Ask when run - Prompt for the name when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project..
    • Text - Enter the text in the Text Builder.
    • Open in Advanced Editor - Enter a VB expression.
  • Match case - Indicates whether to replace the text that only matches specific capitalization.
  • Whole words only - If selected, indicates that only entire words should be replaced. If not selected, text that is part of a larger word is also replaced. This option is not selected by default.
  • Replace all - If selected, indicates that all occurrences of the text should be replaced. If not selected, only the first occurrence of the text is replaced. This option is selected by default.

Misc

  • Private - If selected, the data used in the activity is not logged by Studio or StudioX.

Output

  • Number of replacements - Optionally, save the number of replacements made. In StudioX, click Plus plus buttonplus button on the right side of the field, and then select one of the options from the menu:
    • Excel - Saves the value to a cell in an Excel file or the Project Notebook.
    • Copy to clipboard - Saves the returned value to clipboard.
    • Save for Later Use - Prompts to provide a name to save the value. The name can be changed afterwards.
    • Open in Advanced Editor - Enter a VB expression.

Updated 4 months ago


Replace Text in Presentation


Suggested Edits are limited on API Reference Pages

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