> ## 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/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=a5a074851f55c6ae8768471cc1476afa" alt="Excel区域截图指令参数面板" width="660" height="869" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-01.png" />

    | 参数           | 说明                                                         |
    | ------------ | ---------------------------------------------------------- |
    | **Excel对象**  | 请选择Excel对象（可通过指令【启动Excel】或【获取当前激活的Excel对象】创建），用于确定待操作的工作簿。 |
    | **Sheet页名称** | 操作目标工作表的名称，支持选填，默认为当前Excel激活的Sheet页。                       |
    | **截图区域**     | 填写需要截图的单元格区域。                                              |
    | **保存路径**     | 填写截图保存的文件路径。                                               |
    | **图片格式**     | 选择截图保存的图片格式。                                               |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=6f085def66e1d56feba788bc08ee494d" alt="Excel区域截图使用示例" width="660" height="869" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=671ef8bf268c642804e57c4844aaf09f" alt="Excel区域截图使用示例" width="1317" height="190" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-02.png" />

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

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

使用【Excel区域截图】指令对指定区域截图并保存到文件

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-04.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=851aac351e8f03eb4a6dc8d21b71badc" alt="Excel区域截图效果展示" width="1920" height="1000" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-05.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=2516e238a2644f1203c66abfb6e8e9ff" alt="Excel区域截图效果展示" width="1000" height="123" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-05.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/getexcelregionscreenshotcommand-06.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=9c4c17fd0b412740a7fb5a8cf32ead0f" alt="Excel区域截图效果展示" width="390" height="59" data-path="helpcenter/commands/excel/images/getexcelregionscreenshotcommand-06.png" />

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