> ## 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工作表中插入图片。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/addimagetoexcelcommand-01.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=c20c7f604ee321e016a2943444179c64" alt="单元格插入图片指令参数面板" width="648" height="595" data-path="helpcenter/commands/excel/images/addimagetoexcelcommand-01.png" />

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

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/addimagetoexcelcommand-04.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=ee877b46ff3e0750f2dd5ead156bd194" alt="单元格插入图片高级参数面板" width="650" height="264" data-path="helpcenter/commands/excel/images/addimagetoexcelcommand-04.png" />

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/addimagetoexcelcommand-03.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=8dd0e7f157409f0be750afd7b28c5787" alt="单元格插入图片使用示例" width="654" height="600" data-path="helpcenter/commands/excel/images/addimagetoexcelcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/D5GDQBvL8QxS-YtY/helpcenter/commands/excel/images/addimagetoexcelcommand-02.png?fit=max&auto=format&n=D5GDQBvL8QxS-YtY&q=85&s=e398d3b4b96663e4bb79bf4050750f9a" alt="单元格插入图片使用示例 - 流程搭建" width="1110" height="157" data-path="helpcenter/commands/excel/images/addimagetoexcelcommand-02.png" />

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

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

使用【单元格插入图片】指令将图片插入到指定单元格位置

### 效果展示

执行完成后，图片将插入到指定 Excel 工作表位置。

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