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

生产力活动

上次更新日期 2026年3月9日

读取范围

UiPath.Excel.Activities.ExcelReadRange

Reads the value of an Excel range and stores it in a DataTable variable. If the range isn't specified, the whole spreadsheet is read. If the range is specified as a cell, the whole spreadsheet starting from that cell is read. Can only be used in the Excel Application Scope or Use Excel File activities.

备注:

出于软件限制,该活动在读取具有货币格式的单元格时,最多只会检索 4 位小数。

属性

常见
  • “显示名称”- 活动的显示名称。
输入
  • “范围”- 要读取的范围。如未指定范围,则读取整个电子表格。如果将范围指定为一个单元格,则从该单元格开始读取整个电子表格。仅支持字符串和字符串变量。
  • SheetName - The name of the sheet in which the range that you want to read is. By default, this is filled in with "Sheet1." Only String variables and strings are supported.
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
选项
  • “添加标头”- 如果选中,则该活动还会提取指定电子表格范围中的列标头。系统会默认选中该复选框(设为“True”)。
  • 保留格式 - 选择此选项可读取范围中显示的值(例如货币、日期、文本)。不保留实际的数字格式,仅保留数据的显示方式。默认情况下,未选择该选项。
备注:

选中“保留格式”复选框可能会大范围引发性能问题。这是因为选中该复选框后,系统会逐一读取单元格,而非批量读取。

  • “使用筛选器”- 如果选中,则该活动不会读取指定范围中已筛除的内容。默认情况下,系统不会选中该复选框。因此,无论是否已筛除某些信息,该活动都会读取全部范围。
输出
  • “数据表”- 将从指定 Excel 范围提取的数据存储在“DataTable”变量中。仅支持“DataTable”变量。

“读取范围”活动使用示例

您可以查看包含多个活动的示例,了解如何使用“读取范围”活动。

To exemplify how to use this activity, we have built an automation project which also includes a Read Range activity.

您可以在表功能中查看和下载此示例

  • 属性
  • “读取范围”活动使用示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新