i have a little problem. On my Google Sheet, i want to : When i change background color of a cell, i want to write in another cell the HEX code of the color that i changed. I do a little code who get the background color of the cell, but when i edit the color of the cell, ma cell where is the HEX Code, doesn't update. I put here my code to get the HEX code color of the other cell.
function GetCellColorCode(input)
{
var ss = SpreadsheetApp.getActiveSpreadsheet();
var cell = ss.getRange(input)
return cell.getBackground();
}
I put an image of my Excel Table. For exemple i call this function on L4 cell and i put in parameters the C4 cell. The code work well the first time i call the function, but when i update the color of the other cell, nothing is happening When i update the background color of C4 cell, i wont that the L4 cell update his value automatically.
Thanks for your help