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

生产力活动

“匹配”功能

UiPath.Excel.Activities.Business.MatchFunctionX

描述

在一定范围的单元格内搜索指定项目,然后返回该项目在该范围内的相对位置。该活动可与为父级“使用 Excel 文件”活动选择的 Excel 文件、连接到自动化的 Excel 文件或项目笔记本一起使用。

配置活动

设计器面板

  • Value to match - Select Plus on the right side of the field, then, from the menu, select a value using one of the available options:

    • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,选择 Excel 文件中的一个单元格或所选 Outlook 电子邮件中包含值的一个字段。
    • “使用保存的值”- 选择您先前在项目中保存以备后用的名称。
    • “文本”- 在文本生成器中输入文本。
    • “运行时询问”- 执行项目时提示输入文本。
    • Number - Enter a numeric value.
    • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
    • Open in Advanced Editor - Enter a VB expression.
  • In range - The range to be searched for the value to match. Select Plus on the right side of the field and then, from the menu, select a named range or select Indicate in Excel to open the file and select a range directly from the file. Alternatively, you can select Custom Input to enter the range manually or Open in Advanced Editor to enter a VB expression.

  • “匹配类型”- 指定值的匹配方式。从可用选项中选择:

    • 0 (第一个值完全等于要匹配的值)
    • 1 (最大值小于或等于要匹配的值)
    • -1 (最小值大于或等于要匹配的值)
  • Save to - Save the value returned by the activity (the position of the matched value within the range). If the value to match is not found, -1 is returned. Select Plus on the right side of the field, then, from the menu, select one of the available options to save the resulting value:

    • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,选择 Excel 文件中的一个单元格或所选 Outlook 电子邮件中包含值的一个字段。
    • “复制到剪贴板-” 将生成的路径保存到剪贴板。
    • “保存以便以后使用”- 保存输出数据以供之后在项目中用作另一个活动的输入。
    • Open in Advanced Editor - Enter a VB expression.
    备注:

该返回值是范围内匹配值的位置,而不是值本身。 :::

属性面板

常见
  • “显示名称”- 设计器面板中活动的显示名称
输入
  • 请在活动正文中查看选项。
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • 请在活动正文中查看选项。
  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新