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

# 获取Sheet页名称

## 指令说明

**描述：** 获取Excel工作簿中指定或全部工作表的名称。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelsheetnamecommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=2db5d26c8744dfa30498d2b52ff1098d" alt="获取Sheet页名称指令参数面板" width="641" height="401" data-path="helpcenter/commands/excel/images/getexcelsheetnamecommand-01.png" />

    | 参数          | 说明                                                         |
    | ----------- | ---------------------------------------------------------- |
    | **Excel对象** | 请选择Excel对象（可通过指令【启动Excel】或【获取当前激活的Excel对象】创建），用于确定待操作的工作簿。 |
    | **获取方式**    | 下拉选择：获取当前激活的Sheet页名称、获取全部Sheet页名称。                         |
    | **保存结果至**   | 设置保存名称结果的变量名。                                              |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelsheetnamecommand-04.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=e091072d0a0aae0e9e3d2240abddf1a9" alt="获取Sheet页名称使用示例" width="660" height="407" data-path="helpcenter/commands/excel/images/getexcelsheetnamecommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelsheetnamecommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=b17a65fcfc807f3ac65d5e4b3ceca40c" alt="获取Sheet页名称使用示例 - 流程搭建" width="782" height="210" data-path="helpcenter/commands/excel/images/getexcelsheetnamecommand-02.png" />

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

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

使用【获取Sheet页名称】指令获取工作表名称并保存到变量

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelsheetnamecommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=4abb5e6f62a1de22b0839829d9ea32b8" alt="获取Sheet页名称使用示例 - 效果展示" width="873" height="221" data-path="helpcenter/commands/excel/images/getexcelsheetnamecommand-03.png" />

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