google-apps-script

Union multiple ranges in google sheets with programmatic lookup

馋奶兔 提交于 2020-07-03 09:34:08
问题 I have a google sheet with a dynamically changing number of worksheets within it. I'd like to be able to automatically union all worksheets that included in a named range that has the worksheet names. I have a manual formula that is working and will union all data into a single worksheet. I'd like to make this computed from the named range. UNION FORMULA ={QUERY('Sheet1'!A2:L, "select * where A != ''");QUERY('Sheet2'!A2:L, "select * where A != ''")} I also have a named range in another sheet

How to test a Google Apps Script with multiple active users before publishing the addon?

爷,独闯天下 提交于 2020-07-03 07:44:46
问题 One of the General requirements for publishing an addon for Google Docs via Google Apps Script includes this line: The script has been tested with multiple active users. How does someone go about testing a script with multiple active users when the script hasn't been published and therefore can only be seen by the original author (i.e. one user)? Assuming it is even possible to accomplish in the first place, can I complete this task by myself or do I have to have other people involved? 回答1: I

How do I get the formula separator in a script?

末鹿安然 提交于 2020-07-03 05:16:24
问题 I have a basic Google Sheets script and as part of the HTML sidebar I show the user the formula to type in; e.g. =myformula("bob", "ross") . This works for people in the U.S. and a lot of other countries but there are quite a few countries that use ; instead, so the formula looks like =myformula("bob"; "ross") . I know I can probably get the locale of the spreadsheet via a script but is there a way to get whether I should put a , or a ; ? Thanks! 回答1: ; is universally accepted(except in case

Transfer a HTML table (user input) to google sheets

眉间皱痕 提交于 2020-07-02 03:00:53
问题 i want to transfer some user input data from a html page to my google sheet with google´s app scripts. I can do that for single values but could not figure out a nice way to do that for a table. The table will be dynamically created by the user (fix number of columns and dynamic number of rows). Bellow is the code which shows the example for a single value and is missing a solution for the entire table. One idea was to iterate over the table and create a array of arrays with the table data

I am trying to pass a variable from my Google Script through to HtmlOutputFromFile

十年热恋 提交于 2020-07-02 03:00:32
问题 I am trying to create an input box with a drop down list, where that list is based on a 2D array pulled from a Spreadsheet. My research so far has told me that if i store the HtmlService.createHtmlOutputFromFile in a variable that I can then "set properties" of that variable that will then get passed to the html. (i saw this used specifically with HtmlService.createTemplateFromFile) //google script code function selectMonth(){ var monthTab = SpreadsheetApp.getActiveSpreadsheet()

I am trying to pass a variable from my Google Script through to HtmlOutputFromFile

元气小坏坏 提交于 2020-07-02 03:00:31
问题 I am trying to create an input box with a drop down list, where that list is based on a 2D array pulled from a Spreadsheet. My research so far has told me that if i store the HtmlService.createHtmlOutputFromFile in a variable that I can then "set properties" of that variable that will then get passed to the html. (i saw this used specifically with HtmlService.createTemplateFromFile) //google script code function selectMonth(){ var monthTab = SpreadsheetApp.getActiveSpreadsheet()

I am trying to pass a variable from my Google Script through to HtmlOutputFromFile

风格不统一 提交于 2020-07-02 03:00:29
问题 I am trying to create an input box with a drop down list, where that list is based on a 2D array pulled from a Spreadsheet. My research so far has told me that if i store the HtmlService.createHtmlOutputFromFile in a variable that I can then "set properties" of that variable that will then get passed to the html. (i saw this used specifically with HtmlService.createTemplateFromFile) //google script code function selectMonth(){ var monthTab = SpreadsheetApp.getActiveSpreadsheet()

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

醉酒当歌 提交于 2020-07-01 16:50:44
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

北慕城南 提交于 2020-07-01 16:50:19
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the

Duplicate emails sent from Apps Script project that has a weekly time-based trigger

牧云@^-^@ 提交于 2020-07-01 16:49:31
问题 The below script was correctly sending one weekly email to each person who met the conditions specified in the script. The trigger is time-based, set to run weekly on Monday mornings. This morning, the script ran 4 times and the same individuals received the same email 4 times. The only thing I can think of is that last week I put a shortcut to the Sheet into a shared folder. The folder has 5 individuals who can access anything in it - me and 4 other people. I am 100% certain none of the