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

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/saveexcelcommand-01.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=72c1ecbaf5eb72b45fc2e01445f57265" alt="保存/另存为excel指令参数面板" width="649" height="421" data-path="helpcenter/commands/excel/images/saveexcelcommand-01.png" />

    | 参数            | 说明                                |
    | ------------- | --------------------------------- |
    | **Excel对象**   | 新建Excel或选择已打开的Excel对象。            |
    | **保存方式**      | 保存/另存为                            |
    | **另存为路径**     | 若上一参数填写"另存为"，本参数需填写"另存的Excel文件路径" |
    | **如果文件存在则覆盖** | 勾选，如果文件在路径已存在，若勾选，支持直接覆盖。         |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/saveexcelcommand-03.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=5c2b64c4b7ce6e78049ac4e872865b92" alt="保存/另存为excel使用示例" width="654" height="404" data-path="helpcenter/commands/excel/images/saveexcelcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/saveexcelcommand-02.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=a6f57e47a5448d4e7a7bdb31fc5f320d" alt="保存/另存为excel使用示例 - 流程搭建" width="1061" height="203" data-path="helpcenter/commands/excel/images/saveexcelcommand-02.png" />

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

使用【获取当前激活的Excel对象】命令获取当前激活的Excel对象，将对象保存到excel对象

使用【查找/替换数据】查找设定区域内的字符"八"，并替换成"八爪鱼"

使用【保存/另存为excel】指令将文件另存到新的路径

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/XU4apql8B34CRdwD/helpcenter/commands/excel/images/saveexcelcommand-04.png?fit=max&auto=format&n=XU4apql8B34CRdwD&q=85&s=019c660f4a1ac12a9a02ecd4c61b4c7b" alt="保存/另存为excel使用示例 - 效果展示 2" width="1034" height="227" data-path="helpcenter/commands/excel/images/saveexcelcommand-04.png" />

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