> ## 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/writetodingtalksheetcommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=467b971ab0700a445340e9942744de34" alt="写入表格数据指令参数面板" width="657" height="526" data-path="helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-01.png" />

    | 参数          | 说明                                           |
    | ----------- | -------------------------------------------- |
    | **钉钉表格对象**  | 选择需要操作的钉钉表格对象                                |
    | **Sheet名称** | Sheet名称或ID，可直接输入或通过获取Sheet页名称获取。推荐使用Sheet名称。 |
    | **写入方式**    | 请选择写入方式，可以往指定单元格、指定行、指定列或指定区域写入内容            |
    | **行号**      | 写入方式选中指定列或指定单元格之后需要选择，选择要写入的行的行号             |
    | **列名/列号**   | 写入方式选中指定列或指定单元格之后需要选择，选择要写入的列的列名/列号，从A或1开始   |
    | **开始行号**    | 写入方式选中指定区域之后需要选择，选择要写入区域的开始行，输入行号，从1开始       |
    | **开始列**     | 写入方式选中指定区域之后需要选择，选择要写入区域的开始列，输入列名/列号，从A或1开始  |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=ec29c51094ece119f8da50bf123ee6bd" alt="写入表格数据使用示例" width="537" height="528" data-path="helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=2203a39a67746501ef2b2966c9c2c3a6" alt="写入表格数据使用示例" width="850" height="198" data-path="helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-03.png" />

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

使用【连接钉钉表格】建立钉钉表格连接

使用【写入表格数据】在表格的Sheet1页，从滴2行第3列开始插入指定表格数据。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-04.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=b5ec6544df016f1569d466bc60404f14" alt="写入表格数据效果展示" width="839" height="194" data-path="helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-05.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=f03be3425f95f6de7efdfe7175a9792d" alt="写入表格数据效果展示" width="833" height="445" data-path="helpcenter/commands/dingtalk/images/writetodingtalksheetcommand-05.png" />

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