activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Jan 13, 2025

For Each Sheet in Workbook

UiPath.MicrosoftOffice365.Activities.ForEachSheetConnections

Description

Iterates through the sheets within a workbook.

Add the activities to repeat inside For Each Sheet in Workbook and, when you configure them, select Use Variable > CurrentSheet from the See more button menu to indicate that you want to repeat the actions for each sheet in the iteration. For details, see Iterate through items with For Each activities.

Note: This activity uses pagination for processing large numbers of items and mitigating performance issues. This activity doesn't support persistence.
Scopes

This activity requires the following scopes:

  • Sites.Read.All

OR

  • Sites.ReadWrite.All

Project compatibility

Windows | Cross-platform

Configuration

  • Microsoft OneDrive & SharePoint connection - The connection for the Microsoft 365 account to use in the activity.
  • Workbook - The Excel workbook to use. The method to specify the folder to be retrieved: Folder picker, Enter Id, Enter Url.
    • File/Folder picker option: Click the Folder docs image icon to browse the OneDrive or SharePoint files/folders and select a spreadsheet. This option accepts input as IResource.
      • Use the See more button menu to use a variable or select the Reload Folder Data option if you've modified your folders and need to retrieve the latest data.

    • Enter Id option:

    • Enter Url option:

      • Workbook Url - The URL of the workbook of interest. This field supports String type input. Retrieve the URL by opening the file in a browser.
Additional options

Output

  • Number of sheets processed - The total number of sheets processed by the activity.

    Can be used outside the For Each Row in Workbook activity. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities.

Body

The body of the activity that stores other activities used in the automation, such as Read Range.

Example



See also:
  • Description
  • Project compatibility
  • Configuration
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.