# Copy Sheet

> `UiPath.GSuite.Activities.CopySheet`

`UiPath.GSuite.Activities.CopySheet`

## Description

Copies a sheet from one spreadsheet and pastes it into the same spreadsheet or a different spreadsheet.
:::note
This classic activity is in maintenance mode. Instead, use the modern equivalent, the [Copy Paste Range](https://docs.uipath.com/activities/other/latest/productivity/google-workspace-copy-paste-range) activity.
:::

### Scopes

This activity requires the following scopes:

* https://www.googleapis.com/auth/drive

OR

* https://www.googleapis.com/auth/spreadsheets

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Designer panel

* **From spreadsheet** - A reference to a Google Spreadsheet to be copied. Typically obtained via the **Use Google Spreadsheet** activity. This property supports `IGoogleSheetTarget` variables.
* **Sheet to copy** - The name of the sheet that you want to copy. This property supports `String` variables and string formatted values. The default value is "Sheet1".
* **To spreadsheet** - A reference to a Google Spreadsheet where to copy the sheet from. Typically obtained via the **Use Google Spreadsheet** activity. This property supports `IGoogleSheetTarget` variables.
* **New sheet name** - The name to assign to the new sheet. This property supports String variables and string formatted values.

### Properties panel

#### Common

* **ContinueOnError** - If set, the remaining activities are executed if the current activity fails. This field supports Boolean values.
* **DisplayName** - The display name of the activity. This property supports `String` variables and string formatted values.

#### Input

* **CopySheetName** - See **Sheet to copy** in the body of the activity.
* **CopySpreadsheetID** - The ID of the spreadsheet file from which to copy a sheet. This property supports `String` variables and string formatted values.
* **FromSpreadsheet** - See **From spreadsheet** in the body of the activity.

#### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

#### Options

* **NewSheetName** - See **New sheet name** in the body of the activity.
* **PasteSpreadsheetID** - The ID of the spreadsheet file where to paste the copied sheet. This property supports `String` variables and string formatted values.
* **ToSpreadsheet** - See **From spreadsheet** in the body of the activity.

#### Output

* **CopiedSheetName** - The name of the copied sheet.
