LOOP Each sheet in an Excel file function

The LOOP Each sheet in an Excel file function in RPA.

Help CentreBuilding Processes

This article describes the RPA Loop functionality to each sheet in an Excel file.

For a full list of available functions, please read LOOP functions.


Description

The LOOP Each sheet in an Excel file function allows you to each sheet in an Excel file.


Setting it up

To use the LOOP Each sheet in an Excel file function, follow these instructions:

{{popups:rpas/add:action=loop-excel-sheet}}

Once on a process map:

  1. Navigate to the process where you would like to add the LOOP Each sheet in an Excel file function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the LOOP Each sheet in an Excel file option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
FileYesText-The path to the Excel file
VariableYesText-Variable to store the current sheet name
Include hidden sheetsNoSwitchOffAlso iterate over hidden sheets
Max iterationsNoNumber-Maximum iterations

Output variables

VariableTypeDescription
VariableTextThe current sheet name in each iteration

Errors

ErrorDescription
File not foundThe Excel file does not exist

Tips

  • Loops through all sheets in an Excel workbook
  • Enable hidden sheets to include sheets that are not visible

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.