# Get Cell Color Workbook

> `UiPath.Excel.Activities.GetCellColor`

`UiPath.Excel.Activities.GetCellColor`

Extracts the background color of a cell from a workbook, and saves it as a Color variable. You can only use it within the **Excel Application Scope** or **Use Excel File** activities.

:::note
The supported Workbook formats are `.xls`, `.xlsm`, `.xltm`, `.xlsx`, and `.xltx`.
:::

## Project compatibility

Windows | Cross-platform

## Configuration

* **File (local path)** - The full local path of the workbook. To switch to file resource, select the plus icon, and then **Use a File Resource**. The current field will change to **File**, where you can provide the full path of the resource workbook.
* **SheetName** - The name of the sheet containing the cell. This field only accepts strings and string variables. You must place strings between quotation marks.
* **Cell** - The workbook cell or range whose color you want to extract. You can fill it in with strings such as `B3`, and `A1:A100`. This field only accepts strings and string variables. You must place strings between quotation marks.

## Properties

Options

* **Password** - Optionally, enter the password of the workbook.

Output

* **Color** - The extracted color stored as a `System.Drawing.Color` variable.

Use Workbook

* **Workbook** - The existing workbook to use.
