Assigned
Status Update
Comments
[Deleted User] <[Deleted User]> #2
Hello
mu...@google.com <mu...@google.com> #3
Hello there,
Thank you for reporting this! However, it seems that this is the expected behavior as the method will return the valid named ranges. Would you be interested in turning this into a feature request instead? If yes, how would it impact your organization in terms of costs and productivity?
am...@gmail.com <am...@gmail.com> #4
Sure, please make it a feature request. It would be useful for automating the maintenance of named ranges across a large number of sheets, which is what I was trying to implement 3 years ago when I logged this issue. I don't know how much time is spent manually checking and fixing corrupted named ranges, but certainly some amount each week.
da...@gmail.com <da...@gmail.com> #5
Hi,
Named ranges help a lot to write dynamic scripts that do not require static range references. And it is crucial to have a good way to define, delete and manage named ranges within app scripts. Especially manage invalid named ranges.
Named ranges help a lot to write dynamic scripts that do not require static range references. And it is crucial to have a good way to define, delete and manage named ranges within app scripts. Especially manage invalid named ranges.
mu...@google.com <mu...@google.com> #6
Thank you for the details provided! I have forwarded them internally.
Best regards
is...@google.com <is...@google.com>
se...@gmail.com <se...@gmail.com> #7
+1 please fix this
[Deleted User] <[Deleted User]> #8
I really need this feature, as my workflow often involves maintaining a collection of tabs, each having many named ranges in common. That is, I'll create a new worksheet by duplicating a "template" sheet, and then populate it with data. Older sheets eventually get deleted, which produces a growing collection of defunct named ranges.
I haven't found a way to delete them in bulk via the Sheets UI either. In fact, it's a surprisingly tedious process because the UI resets the viewport to the very top list item after each deletion, forcing the user to manually perform O(n-squared) scroll wheel rotations.
I would be really grateful if this were fixed / added.
Thank you
I haven't found a way to delete them in bulk via the Sheets UI either. In fact, it's a surprisingly tedious process because the UI resets the viewport to the very top list item after each deletion, forcing the user to manually perform O(n-squared) scroll wheel rotations.
I would be really grateful if this were fixed / added.
Thank you
jp...@google.com <jp...@google.com>
ti...@gmail.com <ti...@gmail.com> #9
+1
er...@scgrandjury.org <er...@scgrandjury.org> #10
I have run into this bug earlier this week.
Any chance of progress?
In particular, named ranges that are on a deleted sheet (tab) can hang around and do not show up through the Spreadsheet.getNamedRanges(...) call.
The Spreadsheet Editor is doing something out of band wrt the API to see these objects but from App Script I can not see them.
Any chance of progress?
In particular, named ranges that are on a deleted sheet (tab) can hang around and do not show up through the Spreadsheet.getNamedRanges(...) call.
The Spreadsheet Editor is doing something out of band wrt the API to see these objects but from App Script I can not see them.
ma...@qwist.com <ma...@qwist.com> #11
I need this ... it's a nightmare having to do it manually
ja...@studielokaal.nl <ja...@studielokaal.nl> #12
This request would break many of my scripts as we are relying on the broken named ranges not being found and we would otherwise often have duplicate named ranges with the same name. Please make it an option to also select the broken named ranges which is off by default
id...@gmail.com <id...@gmail.com> #13
Dear Google Team, this issue got reported 5 years back. Can you please let us know when this is going to get fixed
wa...@gmail.com <wa...@gmail.com> #14
I'm impacted as well!
Having no more options but manual deletion...
I hope NamedRanges methods get improved soon.
Having no more options but manual deletion...
I hope NamedRanges methods get improved soon.
id...@gmail.com <id...@gmail.com> #15
+1
bw...@williams.edu <bw...@williams.edu> #16
+1 -- for Sheets using a lot of Named Ranges, not being able to access these #REF ranges with a script is a big problem.
Description
1. Create a spreadsheet with two tabs
2. Add a named range to an arbitrary cell on one of the tabs
3. Run the following script and confirm that your name range appears
3. Delete the tab and check that Data > Named ranges... now shows your named range as #REF
4. Run the same script and confirm that your name range no longer appears
function fetchNamedRanges() {
var namedRanges = SpreadsheetApp.getActive().getNamedRanges();
Logger.log(namedRanges.length);
for (var i=0; i<namedRanges.length; i++) Logger.log(namedRanges[i].getName());
// var namedRanges = Sheets.Spreadsheets.get(SpreadsheetApp.getActive().getId()).namedRanges;
// Logger.log(namedRanges.length);
// for (var i=0; i<namedRanges.length; i++) Logger.log(namedRanges[i].name);
}
To use the commented out lines, enable the advanced Google Sheets API in Resources > Advanced Google services... and in the Cloud Platform API Dashboard.