Subscribe

UiPath Activities

The UiPath Activities Guide

For Each Excel Sheet

UiPath.Excel.Activities.Business.ForEachSheetX

Executes one or more activities for each sheet in an Excel workbook. The activity can be used with an Excel file selected for a parent Use Excel File activity or with the Project Notebook.

Use this activity when you are working with an Excel file with multiple sheets and you want to repeat one or more activities for each individual sheet. Add the activities to repeat inside For Each Excel Sheet and, when you configure the activities, select CurrentSheet from the Plus plus buttonplus button menu to indicate that you want to repeat the actions for each sheet in the iteration. For activity fields that accept text input, select the Name option under CurrentSheet to use the name of the current sheet in the iteration.

Configuring the Activity

In the Body of the Activity

  • For each - Enter the name by which to refer to the current sheet in the iteration. Using a name that describes the sheets in the file makes it easier to identify and select the current sheet in the iteration when configuring activities added inside For Each Excel Sheet. For example, for a file with data for different offices in each sheet, you can enter Office. The default value is CurrentSheet.
  • In workbook - Click Plus plus buttonplus button on the right side of the field and then, from the menu, select the Excel file whose sheets to iterate through Alternatively, you can select Open in Advanced Editor to enter a VB expression.

In the Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.
  • Workbook - See In workbook in the body of the activity.

Updated 29 days ago


For Each Excel Sheet


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.