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
// Sheet link: tinyurl.com/sid-retro-tool | |
// Below code is to be pasted in AppScript Editor | |
UPVOTE_COLUMN = [2,7,12] | |
DOWNVOTE_COLUMN = [3,8,13] | |
function onSelectionChange(evt) { | |
const activeSheet = SpreadsheetApp.getActiveSheet(); | |
const selectionRange = evt.range; | |
const userSelectedARange = selectionRange.getNumRows() > 1 || selectionRange.getNumColumns() > 1; |