> ## 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文件。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/closeexcelcommand-01.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=a3089d4b337023ec353e239e0f4ba5a7" alt="关闭Excel指令参数面板" width="648" height="357" data-path="helpcenter/commands/excel/images/closeexcelcommand-01.png" />

    | 参数          | 说明                              |
    | ----------- | ------------------------------- |
    | **关闭方式**    | 选择关闭方式：关闭指定的Excel文件、关闭所有Excel文件 |
    | **Excel对象** | 选择需要被关闭的Excel对象                 |
    | **保存方式**    | 选择关闭保存方式：保存、另存为、不保存             |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/closeexcelcommand-02.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=d0a0479dd3202ad99fc94c05ee41b629" alt="关闭Excel使用示例 - 流程搭建" width="849" height="142" data-path="helpcenter/commands/excel/images/closeexcelcommand-02.png" />

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

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

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

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/closeexcelcommand-03.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=8cce808d155c777e2e367240349cd351" alt="关闭Excel使用示例 - 效果展示" width="838" height="208" data-path="helpcenter/commands/excel/images/closeexcelcommand-03.png" />

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