> ## 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/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-01.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=6cd27e3b00353a71848474c7e7f93a79" alt="查找/替换数据指令参数面板" width="660" height="757" data-path="helpcenter/commands/excel/images/findexcelcellcommand-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/findexcelcellcommand-02.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=ac1345141685660b41e3445f85747f20" alt="查找/替换数据使用示例" width="926" height="684" data-path="helpcenter/commands/excel/images/findexcelcellcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-03.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=cd6424841922c1017d201bccf0211f36" alt="查找/替换数据使用示例" width="1363" height="907" data-path="helpcenter/commands/excel/images/findexcelcellcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-05.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=a0c77ca6ce86bed51598cccdff2e3c12" alt="查找/替换数据使用示例" width="654" height="706" data-path="helpcenter/commands/excel/images/findexcelcellcommand-05.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-04.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=bbafd9be4e375fcf2e726e497f7f6c31" alt="查找/替换数据使用示例" width="939" height="192" data-path="helpcenter/commands/excel/images/findexcelcellcommand-04.png" />

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

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

使用【查找/替换数据】查找设定区域内的字符并替换

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-06.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=b9dd18c199d9834ed031e2ba3c6ea210" alt="查找/替换数据效果展示" width="838" height="217" data-path="helpcenter/commands/excel/images/findexcelcellcommand-06.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-07.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=a8057f06b77723f5d111c52a9636ffba" alt="查找/替换数据效果展示" width="597" height="178" data-path="helpcenter/commands/excel/images/findexcelcellcommand-07.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/PoBbJh6tQuwbCrmc/helpcenter/commands/excel/images/findexcelcellcommand-08.png?fit=max&auto=format&n=PoBbJh6tQuwbCrmc&q=85&s=b294dbea02ba12197fbd2fdff1af10b6" alt="查找/替换数据效果展示" width="619" height="188" data-path="helpcenter/commands/excel/images/findexcelcellcommand-08.png" />

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