Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9752

Can I retrieve the names of sheets in a public document?

$
0
0

I am currently using the function IMPORTRANGE in a Google spreadsheet to pull information from a public document using the URL.

I have to supply a range_string in the format "Sheet Name!A1:D21" to select cells A1:D21 of sheet "Sheet Name" in the shared document.

Is there any way for me to get the list of sheets that are currently in the other document? Sheets are added by others, and currently I have to manually enter that information into the document where IMPORTRANGE is being used.

Alternatively, is it possible to have a range_string that uses an index of some sort, such as "[0]!A1:D21" to get cells A1:D21 in the first sheet of the other document?


Viewing all articles
Browse latest Browse all 9752

Trending Articles