I'm pretty new to App Script, so this is a real head-scratcher for me.
With four named ranges on Sheet1 ("Range1","Range2","Range3","Range4")
Logger.log(SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getNamedRanges());
Returns [NamedRange, NamedRange, NamedRange, NamedRange]
The larger goal has been to get this script working, to return the named range an active cell resides in.
Trying to get that working and debugging lead me to the above, making me wonder if the script isn't working due to how getNamedRanges is being returned?
Test Sheet file here.
Is the [NamedRange]
result expected behavior or am I missing something to get the names of the ranges to return?
Thanks!