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

Productivity activities

Last updated Mar 13, 2026

AddSheet

Adds a new sheet to the specified spreadsheet.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

public ISheet AddSheet(
	ISpreadsheet spreadsheet,
	string sheetName = null,
	int? positionIndex = null
public ISheet AddSheet(
	ISpreadsheet spreadsheet,
	string sheetName = null,
	int? positionIndex = null

Parameters

spreadsheet ISpreadsheet : The spreadsheet where to add the new sheet.

sheetName String (Optional) : The name of the new sheet. If left empty, Google Sheets determines the name of the new sheet.

positionIndex Nullable<Int32> (Optional) : Specifies the exact location of the new sheet within the existing spreadsheet. If left empty, the new sheet is added at the end. The first sheet in the spreadsheet is located at index 0.

Return value

ISheet - The new sheet that was added to the spreadsheet.

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated