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

## 指令说明

**描述：** 打开已有的Excel文件，或新建excel，以实现Excel程序的自动化。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/launchexcelcommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=f45e22e06d830b8c82b12e18fe0a44ea" alt="启动Excel指令参数面板" width="644" height="516" data-path="helpcenter/commands/excel/images/launchexcelcommand-01.png" />

    | 参数        | 说明                                                         |
    | --------- | ---------------------------------------------------------- |
    | **启动方式**  | 下拉选择：新建Excel（根据文件路径新建Excel文件）、打开已有的Excel（根据文件路径打开已有的Excel） |
    | **文件路径**  | 填写/选择Excel文件路径                                             |
    | **驱动方式**  | 选择Excel文件驱动（打开）方式：默认、office、wps                            |
    | **是否可视化** | 勾选项：此选项并不会限制Excel自动化的能力，只是用于控制可视化操作是否用户可见                  |
  </Tab>

  <Tab title="高级">
    | 参数       | 说明               |
    | -------- | ---------------- |
    | **打开密码** | 用于打开加密Excel文件的密码 |
    | **编辑密码** | 用于编辑加密Excel文件的密码 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/launchexcelcommand-03.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=42db4f13cf54c7445288ecbaccdf2c3b" alt="启动Excel使用示例" width="640" height="518" data-path="helpcenter/commands/excel/images/launchexcelcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/launchexcelcommand-02.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=98441bbd51bc4a21aaebc2afc0b2e8d5" alt="启动Excel使用示例 - 流程搭建" width="822" height="155" data-path="helpcenter/commands/excel/images/launchexcelcommand-02.png" />

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

使用【启动Excel】打开已有的Excel，使用「默认」的驱动方式，并将生成的变量保存到excel对象

使用【关闭Excel】指令关闭并保存excel对象

### 效果展示

执行完成后，Excel 文件将被打开，并生成可供后续指令使用的 Excel 对象。

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