UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

生产力活动

查找/替换值

UiPath.Excel.Activities.Business.FindReplaceValueX

描述

在指定范围内搜索特定值,并返回找到该值的单元格的地址,或将该值替换为另一个给定值。该活动可以与为父级使用 Excel 文件活动选择的 Excel 文件一起使用,也可以与“项目笔记本”一起使用。

配置活动

设计器面板

  • “操作”- 在“查找”、“替换”和“全部替换”之间选择一个操作。根据所选操作,系统将在活动中显示不同字段。

  • Where to search - Select Plus on the right side of the field and then, from the menu, select an Excel file, and then a sheet, table, or range where to search for the data, or select Indicate in Excel to indicate a range directly from the file. Alternatively, you can select Custom Input to enter a sheet name, table name, or range manually, or Open in Advanced Editor to enter a VB expression.

  • Value to find - Select Plus on the right side of the field, and then, from the menu, select what to look for using one of the available options:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,选择一个 Excel 文件,然后选择“在 Excel 中指明”以指明文件中的单元格,或者在 Outlook 中选择一个电子邮件,然后在电子邮件中选择包含要搜索的值的字段。
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Text - Enter the value using the Text Builder.
    • Number - Enter a numeric value.
    • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
    • “运行时询问”- 执行项目时提示输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • Replace with - Value to replace with. Select Plus on the right side of the field, and then, from the menu, select the a value using one of the available options:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,选择一个 Excel 文件,然后选择“在 Excel 中指明”以指明文件中的单元格,或者在 Outlook 中选择一个电子邮件,然后在电子邮件中选择包含要搜索的值的字段。
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Text - Enter the value using the Text Builder.
    • Number - Enter a numeric value.
    • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
    • “运行时询问”- 执行项目时提示输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • Found at - Location where the value was found when using the Find or Replace operations, no value is returned when using the Replace all operation. Select Plus on the right side of the field and then, from the menu, select where to save the result:

    • Select an Excel file and then a named cell, or select Indicate in Excel to indicate a cell from the file.
    • Save for Later Use - Save the result for later use in your project as input for another activity.
    • “复制到剪贴板-” 将生成的路径保存到剪贴板。
    • Open in Advanced Editor - Enter a VB expression.

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
  • “查找范围”- 指定是在“值”还是在“公式”中执行搜索。
  • “区分大小写”- 如果选中,则搜索区分大小写的数据。
  • “匹配整个单元格内容”- 如果选中,则搜索仅包含在“要查找的值”字段中输入的字符的单元格。
  • 操作 - 请参阅活动正文中的操作
  • “替换现有文件” - 请在活动主体中查看“替换现有文件”
  • 要查找的值- 请参阅活动正文中的要要查找的值
  • 搜索位置 - 请在活动主体中查看搜索位置
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • 发现位置 - 在活动主体中查看发现位置
  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新