订阅

UiPath 活动

UiPath 活动指南

替换文本

UiPath.Word.Activities.WordReplaceText

描述

使用一个字符串对文档中出现的另一字符串进行全部替换。只能用于“Word 应用程序作用域”活动。

属性

Common

  • DisplayName - The display name of the activity.

Input

  • “替换”- 要替换成的文本。仅支持字符串和字符串变量。
  • “搜索”- 要替换的文本。仅支持字符串和字符串变量。

Misc

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

选项

  • 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

  • “找到”- 此为“布尔值”变量,用于指明是否已找到要替换的文本。

UiPath.Word.Activities.WordReplaceText

描述

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:

配置活动

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.

9个月前更新


替换文本


建议的编辑仅限用于 API 参考页面

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