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

Productivity Activities

Last updated Jan 13, 2025

Add Sheet

UiPath.MicrosoftOffice365.Activities.Excel.AddSheetConnections

Description

Adds a sheet to the specified Excel workbook.

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 workbook where to add the sheet. The method to specify the workbook 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.
  • Sheet name - The name of the new sheet. If a name is not provided, Excel determines the name of the sheet. This property supports String variables and string formatted values.
Additional options
  • If sheet already exists - Indicates the conflict resolution behavior in case a sheet with the same name already exists.
    • Don't replace - Fails if an existing item is found.
    • Replace - Replaces the existing item.
    • Auto-rename - Auto-renames the new item by appending a number.

Output

  • Sheet name - The name of the new sheet. 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, such as Write 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.