I'm looking to create a script where I can specify a cell value and text colour and then trigger this and it will colour all of the matching cells (value and text colour) with a background colour of Green.
For example, I have a cell with a value of '1' and the text colour is #4285f4, I want to get the value and text colour of that cell and then match it to a given range (A2:P60) and colour the background of any cells that match the value of '1' and text colour #4285f4 to green.
I have seen there is a textstyle class but I'm not sure how to bring all this together.
Any help is appreciated!
You can use this sample script as reference:
Result
Sample Sheet:
After running the script: