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

Productivity Activities

Last updated Aug 13, 2025

Get Cell Color Workbook

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.
  • Get Cell Color Workbook
  • Project compatibility
  • Configuration
  • Properties

Was this page helpful?

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