Last active
June 10, 2023 15:31
-
-
Save RR-Helpdesk/f3e163fa105700b8bd244f85108b6ff3 to your computer and use it in GitHub Desktop.
Google Sheets Custom Functions #sheets #gas #functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns the Hexadecimal value of a cell's background color. | |
* | |
* @param {number} row The cell's row number. | |
* @param {number} column The cell's column number. | |
* @return The Hexadecimal value of the cell's background color. | |
* @customfunction | |
*/ | |
function BGHEX(row, column) { | |
var background = SpreadsheetApp.getActive().getDataRange().getCell(row, column).getBackground(); | |
return background; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment