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

生产力活动

上次更新日期 2026年1月15日

筛选

UiPath.Excel.Activities.Business.FilterX

根据单列中的值,在范围、表格或工作表中创建筛选条件。也可用于清除现有的筛选条件。要筛选单个范围/工作表/表格中的多个列,您必须针对同一源范围使用多个“筛选”活动。该活动可以与为父级使用 Excel 文件活动选择的 Excel 文件一起使用,也可以与“项目笔记本”一起使用。

当您使用此活动创建筛选器并且筛选器已存在时:

  • If the existing filter is applied to the defined source range, the existing filter is not cleared (both filters are applied).
  • If the existing filter is applied outside of the defined source range:
    • 如果定义的源范围是工作表或单元格范围,则清除现有筛选器并应用新筛选器。
    • 如果定义的源范围是表格,则不会清除现有筛选器。

当您使用此活动清除现有筛选器时:

  • If a column is defined in Column name, only the filter from the specified column is cleared. The defined source range must match the range filtered by the column.
  • If Column name is empty:
    • 如果定义的源范围是工作表或单元格范围,则将从整个工作表中清除所有筛选器。
    • 如果定义的源范围是表格,则仅从该表格中清除所有筛选器。

要了解如何使用此活动,请参阅教程:筛选 Excel 中的数据

配置活动

在活动正文中
  • 源范围- 单击字段右侧的加号,选择文件,然后选择要筛选的指定范围、表格或工作表,或者选择在 Excel 中指明以打开文件并直接从文件中选择一个范围。要手动输入范围、表格或工作表,请选择自定义输入。或者,也可以选择在高级编辑器中打开并输入 VB 表达式。
  • 列名称- 单击字段右侧的加号,选择范围,然后选择要用作筛选依据的列的标头。或者,也可以选择文本以在文本生成器中输入列标题的值,或选择在高级编辑器中打开并输入 VB 表达式。
  • Configure Filter - Click this button to configure the filter for the values in the column. You can use a basic filter to enter one or more values to filter on, or an advanced filter to specify conditions using comparison operators in a similar way to how you configure a Custom AutoFilter in Excel.
  • Clear any existing filter - Select this option if you want to clear existing filters instead of creating a new one. Clearing filters does not remove filter configurations from inside the activity, if any were defined.
属性面板

常见

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

输入

  • 请在活动正文中查看选项。

其他

  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。

选项

  • 清除任何现有过滤条件 - 请在活动主体中查看清除任何现有过滤条件
  • 配置活动

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。