> ## 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行

## 指令说明

**描述：** 删除Excel工作表中指定的行。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/deleteexcelrowcommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=383c65bada2f23a7e1bef96d3fbd4fb3" alt="删除Excel行指令参数面板" width="660" height="438" data-path="helpcenter/commands/excel/images/deleteexcelrowcommand-01.png" />

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

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/deleteexcelrowcommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=8ee286428eee1518257bc20b1484156a" alt="删除Excel行使用示例 - 流程搭建" width="850" height="151" data-path="helpcenter/commands/excel/images/deleteexcelrowcommand-02.png" />

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

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

使用【删除Excel行】指令删除指定行

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/deleteexcelrowcommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=280e90f964b6a87d3f92df62db3d80cd" alt="删除Excel行使用示例 - 效果展示" width="840" height="187" data-path="helpcenter/commands/excel/images/deleteexcelrowcommand-03.png" />

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

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/deleteexcelrowcommand-05.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=8c7825a0e27fd6fb46ad28a8025d884a" alt="删除Excel行使用示例 - 效果展示 3" width="188" height="57" data-path="helpcenter/commands/excel/images/deleteexcelrowcommand-05.png" />

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