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

# 插入行/列

## 指令说明

**描述：** 在钉钉表格中指定位置插入行或者列

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=d1d325c38e24d2ae4e39af0c1667973f" alt="插入行/列指令参数面板" width="636" height="455" data-path="helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-03.png" />

    | 参数          | 说明                                      |
    | ----------- | --------------------------------------- |
    | **钉钉表格对象**  | 选择需要操作的钉钉表格对象                           |
    | **Sheet名称** | Sheet名称或ID，可直接输入或通过获取Sheet页名称获取         |
    | **插入方式**    | 选择插入方式，可以往指定行上方插入1行或多行，也可以往指定列左侧插入1列或多列 |
    | **行号**      | 要插入位置的行号，将在其上方插入                        |
    | **列名/列号**   | 要插入位置的列名/列号，将在其左侧插入                     |
    | **插入数量**    | 输入要插入的列数/行数，为空则插入1列/1行                  |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=08557cbb05bbb49100284b79d3f7c11e" alt="插入行/列使用示例" width="961" height="254" data-path="helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-02.png" />

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

1. 使用【连接钉钉表格】连接目标表格，并读取 `Sheet1` 的初始总行数，本例为 1 行。
2. 执行【插入行/列】，在 `Sheet1` 第 1 行上方插入 2 行。
3. 再次获取总行数，结果变为 3，说明两行已经成功插入。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=7ca9f035bcf189e5b31f2764595996c3" alt="插入行/列效果展示" width="959" height="263" data-path="helpcenter/commands/dingtalk/images/insertdingtalkroworcolumncommand-01.png" />

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