activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 15, 2024

Replace Text in Presentation

UiPath.Presentation.Activities.FindAndReplaceTextInPresentation

Description

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

Project Compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • Presentation - The full path of the PowerPoint file to be used. If the PowerPoint file to be used is located in the project folder, its relative path can be used. Only String variables and strings are supported.
  • Find what - The text to be replaced. Only String variables and strings are supported.
  • Replace with - The text to replace with. Only String variables and strings are supported.
  • Match case - If enabled, replaces only the text that matches specific capitalization.
  • Whole words only - If enabled, replaces only entire words instead of parts of a longer word. This option is disabled in PowerPoint and in Studio when using non-alphanumeric characters.
  • Replace All - If enabled, replaces all occurrences of the searched text. If not selected, only the first occurrence is replaced.

Properties

  • Number of replacements - The number of replacements that were made.

Windows configuration

The body of the activity

  • Presentation - Set a PowerPoint file in which to search and replace the text.
  • Find what - The text to be replaced. Only String variables and strings are supported.
  • Replace with - The text to replace with. Only String variables and strings are supported.
  • Match case - If selected, replaces only the text that matches specific capitalization.
  • Whole words only - If selected, replaces only entire words instead of parts of a longer word. This option is disabled in PowerPoint and in Studio when using non-alphanumeric characters.
  • Replace All - If selected, replaces all occurrences of the searched text. If not selected, only the first occurrence is replaced.
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 values of variables and arguments are no longer logged at Verbose level.
Output
  • Number of replacements - Optionally, save the number of replacements made.

Windows - Legacy configuration

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 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 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 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 values of variables and arguments are no longer logged at Verbose level.
Output
  • Number of replacements - Optionally, save the number of replacements made. In StudioX, click Plus 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.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.