> ## 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/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/importexceltodatasheetcommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=08718bd93787dc22c0825fb726e5594f" alt="导入Excel至数据表格指令参数面板" width="642" height="512" data-path="helpcenter/commands/datatable/images/importexceltodatasheetcommand-01.png" />

    | 参数              | 说明                           |
    | --------------- | ---------------------------- |
    | **文件路径**        | 目标文件的绝对路径，支持xls、xlsx格式的数据文件  |
    | **选择Sheet页方式**  | 指定Sheet页位置 / 指定Sheet页名称      |
    | **Sheet页位置**    | 指定要导入的Sheet页位置下标，第一个Sheet页为1 |
    | **使用第一行数据作为表头** | 使用Excel文件中的第一行数据作为数据表格的表头信息  |
    | **数据表格保存至**     | 保存读出到内容为变量                   |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/importexceltodatasheetcommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=9661525884e12fdada25f244a9a8ba28" alt="导入Excel至数据表格使用示例 - 流程搭建" width="637" height="516" data-path="helpcenter/commands/datatable/images/importexceltodatasheetcommand-02.png" />

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

使用【**导入Excel至数据表格**】指令导入指定文件中的第一个Sheet页数据到数据表格中，保存至数据表格变量中。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/importexceltodatasheetcommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=f0cca8cc33ed129b8e316a4b4448cabd" alt="导入Excel至数据表格使用示例 - 效果展示" width="1351" height="235" data-path="helpcenter/commands/datatable/images/importexceltodatasheetcommand-03.png" />

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