Created
February 2, 2021 05:49
-
-
Save ismaelc/38eb6377f24b50c7c8e75e3a040f5961 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Deal with column vs range select | |
| function resolveRange(sheet) { | |
| let range = sheet.getActiveRange().getA1Notation(); | |
| let [first, second] = range.split(':') | |
| if (!/\d/.test(second)) { | |
| range = `${first}1:${second}${sheet.getLastRow()}` | |
| } | |
| return range | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment