I use the following code to get the selected cells:
var activeRange = SpreadsheetApp.getActiveRange().getA1Notation();
If I select cells B1, B2, B3, it returns "B1: B3". But if I select B1, and then use the Ctrl key to also select B3, it will only return to βB3β. I want "B1, B3". I could not find a function for this in the documentation.
source share