Skip to main content

Get cell colour

Return a cell's fill colour or font colour as a hex value such as #FFC000, or as red, green and blue numbers.

Command in the Excel toolkit · id ooa.excel/get_cell_color · 5 inputs, 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
CellStringNoCell address; the active cell when empty.
TargetStringNofillfill for the background, font for the text colour.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.
FormatStringNohexhex gives #RRGGBB; rgb gives three numbers separated by commas, e.g. 255,192,0.

Outputs​

OutputTypeWhat it is
colorStringColour as hex or as R,G,B; empty when the cell has no colour set.