Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
173 views
in Technique[技术] by (71.8m points)

Google sheets: publish some but not all worksheets

I have a Google spreadsheet which compiles scheduling info for an event. The file has five worksheets. There are two worksheets which I want to publish to the web; the other three are for my use and to drive calculations.

I can see how to publish the entire file, and how to publish an individual worksheet. However, I cannot figure out how to publish say, sheet1 and sheet2 to a single document.

As a short-term workaround I have tried the following, which works after a fashion but I'm not a fan:

  • Create a new file with two sheets
  • Sheet1 uses an importrange call to grab the data from the original sheet1
  • Sheet2 uses an importrange call to grab the data from the original sheet2
  • I then publish the entirety of the new document

The finished product must be in Google Apps; that is a requirement I cannot dodge.

question from:https://stackoverflow.com/questions/66052138/google-sheets-publish-some-but-not-all-worksheets

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Solution 1:

You can hide the sheets that you don't want to publish, and then publish the entire document:

enter image description here

Published sheet:

enter image description here

Solution 2:

You can publish selected sheets using the Published Content & Settings options on the Publish to the Web dialog box. In the dropdown menu you can select which sheets to include:

enter image description here

The published spreadsheet would look like this:

enter image description here

Note: It seems that the web page may not display all the selected sheets, only the first sheet. You can file a feature/bug request here: https://support.google.com/a/answer/6284762?hl=en


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...