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

# 循环数据表格内容

## 指令说明

**描述：** 按行循环数据表格的内容，并保存循环项

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/loopdatasheetcommand_1-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=9f140f88ae8c0b5f45f739b4cb2364f3" alt="循环数据表格内容指令参数面板" width="978" height="696" data-path="helpcenter/commands/datatable/images/loopdatasheetcommand_1-01.png" />

    | 参数           | 说明                                      |
    | ------------ | --------------------------------------- |
    | **数据表格**     | 选择一个获取到的或者通过"导入Excel/CSV至数据表格"创建的数据表格对象 |
    | **起始行**      | 循环起始行号，行号从1开始                           |
    | **结束行**      | 循环结束行号，-1表示倒数第一行                        |
    | **当前循环项保存至** | 保存当前循环到的内容为变量                           |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/loopdatasheetcommand_1-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=79908c33968cf154ff180f5df544807b" alt="循环数据表格内容使用示例 - 流程搭建" width="1325" height="265" data-path="helpcenter/commands/datatable/images/loopdatasheetcommand_1-03.png" />

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

使用【**循环数据表格内容**】指令循环数据表格2的第1行到最后一行，将循环保存至：当前行

循环体执行【**打印日志**】指令打印当前循环项行的第一个单元格

直至结束行则循环结束

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/datatable/images/loopdatasheetcommand_1-04.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=60961b7c80ed51824259a7c3679474d7" alt="循环数据表格内容使用示例 - 效果展示" width="1176" height="517" data-path="helpcenter/commands/datatable/images/loopdatasheetcommand_1-04.png" />

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