> ## 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/getdingtalksheetcolumncountcommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=1bbc101bb8d59c31c562ec45dc95b810" alt="获取总列数指令参数面板" width="651" height="405" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetcolumncountcommand-01.png" />

    | 参数          | 说明                              |
    | ----------- | ------------------------------- |
    | **钉钉表格对象**  | 选择需要操作的钉钉表格对象                   |
    | **Sheet名称** | Sheet名称或ID，可直接输入或通过获取Sheet页名称获取 |
    | **结果保存至**   | 获取到的数据保存至该变量                    |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/getdingtalksheetcolumncountcommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=035de0072c2de3b51983815d55086633" alt="获取总列数使用示例 - 流程搭建" width="954" height="302" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetcolumncountcommand-02.png" />

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

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

使用【获取总列数】获取表格的行列数为3

使用【删除行/列】删除钉钉表格的Sheet1中第2行数据

使用【获取总列数】获取表格的列数为2

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/getdingtalksheetcolumncountcommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=abd1209af3e6b1da607acfb21df5f27f" alt="获取总列数使用示例 - 效果展示" width="965" height="270" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetcolumncountcommand-03.png" />

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