> ## 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/getlastemptycellofcolumncommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=159f4ab50d01e09ff9759a2dc3842190" alt="获取列尾首个空白单元格指令参数面板" width="648" height="451" data-path="helpcenter/commands/excel/images/getlastemptycellofcolumncommand-01.png" />

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

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getlastemptycellofcolumncommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=d0219176bd5102af30ce06df63dc04ac" alt="获取列尾首个空白单元格使用示例" width="968" height="694" data-path="helpcenter/commands/excel/images/getlastemptycellofcolumncommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getlastemptycellofcolumncommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=539dd02e33eb1db1ec755b53b35edf86" alt="获取列尾首个空白单元格使用示例" width="848" height="146" data-path="helpcenter/commands/excel/images/getlastemptycellofcolumncommand-03.png" />

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

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

使用【获取列尾首个空白单元格】指令获取指定列尾部的空白行号

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getlastemptycellofcolumncommand-04.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=60c5dae32ff47d8e7ac3c38dc62aa74e" alt="获取列尾首个空白单元格效果展示" width="840" height="186" data-path="helpcenter/commands/excel/images/getlastemptycellofcolumncommand-04.png" />

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