I'm trying to work out how I can convert a selected range in to a list of selected cells. So far, I have the following code:
workbook.getWorksheet("Sheet1").activate();
var range = workbook.getSelectedRanges().getAddress();
console.log(range);
However, I'm unsure how to convert this in to a list of cell addresses. Ex [A1, A2, A3, B1, B2] I found this code, however it only works with Office.js, not OfficeScript. Thanks.