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

生产力活动

插入行

UiPath.Excel.Activities.Business.InsertRowsX

描述

在表格、范围或工作表中的指定位置插入一行或多行。指定要插入行的位置、要插入的行数以及要在指定范围中插入行的位置。该活动可以与为父级使用 Excel 文件活动选择的 Excel 文件一起使用,也可以与“项目笔记本”一起使用。

配置活动

设计器面板

  • In what table or range - Select Plus on the right side of the field, then, from the menu, select the file and then a sheet, table, or range where to insert the rows, or select Indicate in Excel to indicate a range directly from the file. Alternatively, you can select Custom Input to enter the range, sheet name, or table manually, or Open in Advanced Editor to enter a VB expression.
  • Number of rows - Select Plus on the right side of the field, and then select Number to enter the number of rows to add. Alternatively, you can use one of the other options in the menu:
    • Select the Excel file, and then select Indicate in Excel to indicate a cell that contains a number.
    • Use Saved Value - Select a numeric value that you previously saved for later use in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • “位置”- 从下拉菜单中选择要插入行的“目标表格或范围”的位置:“开始”、“结束”或“特定索引”。如果选择“特定索引”,则会出现“行数”字段,您必须在其中指定要用作起始位置的行数。
  • “含标头”- 如果您选择的“目标表格或范围”包含标头行,请选择此选项。如果选择此选项,则在确定插入行的位置时,所选内容中的第一行不计算在内。 例如,如果您选择在“A8:C10”范围的开头插入两行,并且已选择“含标头”,则系统会将这些行插入“A8:A10”下方。如果未选择“含标头”,则系统会将行插入到“A8:A10”上方。

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
  • 插入位置 - 请在活动主体中查看位置
  • 行数 - 请在活动主体中查看行数
  • 来源范围 - 请在活动主体中查看目标表格或范围
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
选项
  • “有标题” - 在活动主体中查看“有标题”
  • 特定索引 - 请在活动主体中查看位置 > 特定索引
备注:

存在一个限制,即如果工作表上存在活动筛选器,则“插入行”活动可能不起作用。

  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新