How to add a table of contents to Google Sheets
问题 I'm trying to add a table of contents to Google Sheets : simply want to include a list of all sheets inside the document, as clickable links (got 150+ sheets.) I got it to work, but it's more complicated than I'd like, and leaves me with questions about custom functions in Google Sheets. Here's what I have, set of course in Tools › Script editor : /** * Returns all the document's sheet IDs. * * @return * @customfunction */ function tocid() { var out = new Array() var sheets = SpreadsheetApp