> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 插入空行

## 指令说明

**描述：** 在Excel工作表中插入空行。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/insertexcelrowcommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=3058ce191c57ed05df802358890ef9e2" alt="插入空行指令参数面板" width="645" height="478" data-path="helpcenter/commands/excel/images/insertexcelrowcommand-01.png" />

    | 参数           | 说明                                                         |
    | ------------ | ---------------------------------------------------------- |
    | **Excel对象**  | 请选择Excel对象（可通过指令【启动Excel】或【获取当前激活的Excel对象】创建），用于确定待操作的工作簿。 |
    | **Sheet页名称** | 操作目标工作表的名称，支持选填，默认为当前Excel激活的Sheet页。                       |
    | **插入位置**     | 输入要插入的行号，行号从1开始。                                           |
    | **插入数量**     | 输入要插入的行数，默认为1。                                             |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/insertexcelrowcommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=2e4544117496ef57238bc4f709e233f7" alt="插入空行使用示例 - 流程搭建" width="848" height="201" data-path="helpcenter/commands/excel/images/insertexcelrowcommand-02.png" />

**该流程执行逻辑：**

使用【启动Excel】打开已有的Excel，并将Excel对象保存到excel对象

使用【插入空行】指令在指定位置插入空行

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/insertexcelrowcommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=cc3a229036378e66d9d30d1b305830b3" alt="插入空行使用示例 - 效果展示" width="844" height="216" data-path="helpcenter/commands/excel/images/insertexcelrowcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/insertexcelrowcommand-04.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=a547a2753e741d6cb62afabc9c8d376a" alt="插入空行使用示例 - 效果展示 2" width="188" height="58" data-path="helpcenter/commands/excel/images/insertexcelrowcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/insertexcelrowcommand-05.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=e3be70c83ee3b4e8646519272a4e9f7f" alt="插入空行使用示例 - 效果展示 3" width="188" height="77" data-path="helpcenter/commands/excel/images/insertexcelrowcommand-05.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
