简体   繁体   中英

Google Sheets Script for Printing Specific ranges of a worksheet w/ multiple tabs identical in layout

i'm hoping someone on here can help me with my problem. I am looking for a way to print only a certain range of cells (E5:S48) on a Google sheets file that has multiple tabs, all identical in layout, difference being information referenced. Is there a Script that someone can help me with?

The simplest way to keep all the styles, display formats and layout would be:

  1. copy the original spreadsheet ( copy )
  2. delete all rows ( deleteRows ) and columns ( deleteColumns ) you do not need.

If you want to refer to the values dynamically, further:

  1. clear the content ( clearContent )
  2. change the values into IMPORTRANGE ( setFormula ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM