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

Productivity Activities

Last updated Aug 13, 2025

Set Range Color Workbook

UiPath.Excel.Activities.SetRangeColor

Changes the color of a specified cell or cell range in a workbook using 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 from the workbook that contains the cells to be colored. The field only supports string variables and strings. You must place strings between quotation marks.
  • Range - The cell or cell range whose color should be changed. For example, you can use A1:C1 or B4. The field only supports string variables and strings. You must place strings between quotation marks.
  • Color - The color to set for the range.

Properties

Options

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

Use Workbook

  • Workbook - The existing workbook to use.
  • Set Range 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.