Sorry, I am a beginner in script development. Just tried to access the background color of a cell (returned as color string) and being stuck with the error message "TypeError: getrange is not a function" in line 4.
function GetCellColor(input)
{
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet()
var cell = ss.getrange(input);
var result = cell.getBackground();
return result
}
I want to use it in a spreadsheet with reference to any other cell like
=GetCellColor(D24)
getRange()
notgetrange()
. AlsogetRange()
accepts astring
So use :=GetCellColor("D24")
– TheMaster