Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Conditional highlighting for a complete line

Hello

I searched the forum and elsewhere on the internet, no answer. However...


How can conditional highlighting be used for a complete line in Numbers?

null-OTHER, OS X El Capitan (10.11.6), Numbers

Posted on Mar 3, 2018 10:02 AM

Reply
21 replies

Mar 6, 2018 9:47 AM in response to Marc-Andr St-Pierre

Marc-Andr St-Pierre wrote:


sethighlightColor1to {65535, 65535, 2713} --"yellow"

set highlightColor2 to {0, 0, 65416} -- "blue"


Where can we find the numbers for these color codes?



One way to get the color code is to first color the fill of a cell to your liking.


Then to get the code for the color in the cell, select the cell, and run the script below. The result will be in the 'Result' pane of Script Editor. You can copy-paste it from there to another script, or whatever.


SG


--get background color of a Numbers cell (if none returns 'missing value')

tell application "Numbers" to tell front document

set t to active sheet'stable 1 whose selection range'sclass is range

set bkgrRgb to t'sselection range'scell 1's background color


--> e.g. {64720, 17976, 19514}

end tell

Conditional highlighting for a complete line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.