google-sheets

How to send several rows of google sheet table via email if cell match today's date

本秂侑毒 提交于 2021-02-11 15:47:22
问题 daily I have to send different qty of google sheet table rows (it depends on how many trucks were departed) via e-mail to a few recipients. Could you help me, please, with an example of how to collect several rows of google table if cell match today's date and then send it via email? For example, I need to grab all rows with today's date and send data from columns A, B, C, E via e-mail. Thanks for any help in advance :) 回答1: Let's go step by step. I'm supposing the column A contains the dates

How to access to the google sheet the short cut ist pointing at?

孤街浪徒 提交于 2021-02-11 15:41:07
问题 [![enter image description here][1]][1]I have made a shortcut (new feature of google) of a google sheets. Now I want to get all the Spreadsheets I have in a directory: these function does not work anymore to treat all the Spreadsheet: folder.getFilesByType(mimeType) because the 'new' shortcut a new mime type has been introduced. The ID of the shortcut is different from the original file. You can not access anymore over ID of the files you find in the directory. What is the solution to select

How to read excel file from user and generating Google Sheet file

China☆狼群 提交于 2021-02-11 15:40:43
问题 I need to allow user upload excel (xlsx) file and then generate a Google Sheets file using Google Scripts (the generated file uses the input file values, process them with certain formulas and provides another excel file as output based on all processing) I am currently doing the task in a simple desktop application (using MS Excel etc.), but problem is I have admin rights and I want other people to do the same on their PCs but they dont have admin rights, so please help me with this, whats

How to read excel file from user and generating Google Sheet file

白昼怎懂夜的黑 提交于 2021-02-11 15:39:26
问题 I need to allow user upload excel (xlsx) file and then generate a Google Sheets file using Google Scripts (the generated file uses the input file values, process them with certain formulas and provides another excel file as output based on all processing) I am currently doing the task in a simple desktop application (using MS Excel etc.), but problem is I have admin rights and I want other people to do the same on their PCs but they dont have admin rights, so please help me with this, whats

Post through google app scripts

徘徊边缘 提交于 2021-02-11 15:38:24
问题 I am trying to post from a HTML form to a Google sheet. I am currently just trying to write the code in the Google App script but an error states "Script function not found: doGet" and I cannot figure out what to do. My code is below: function myFunction() { var SHEET_NAME = "Sheet1"; var SCRIPT_PROP = PropertiesService.getScriptProperties(); // new property service function doGet(e){ return handleResponse(e); } function doPost(e){ return handleResponse(e); } function handleResponse(e) { var

Post through google app scripts

旧街凉风 提交于 2021-02-11 15:37:26
问题 I am trying to post from a HTML form to a Google sheet. I am currently just trying to write the code in the Google App script but an error states "Script function not found: doGet" and I cannot figure out what to do. My code is below: function myFunction() { var SHEET_NAME = "Sheet1"; var SCRIPT_PROP = PropertiesService.getScriptProperties(); // new property service function doGet(e){ return handleResponse(e); } function doPost(e){ return handleResponse(e); } function handleResponse(e) { var

Post through google app scripts

不羁的心 提交于 2021-02-11 15:36:31
问题 I am trying to post from a HTML form to a Google sheet. I am currently just trying to write the code in the Google App script but an error states "Script function not found: doGet" and I cannot figure out what to do. My code is below: function myFunction() { var SHEET_NAME = "Sheet1"; var SCRIPT_PROP = PropertiesService.getScriptProperties(); // new property service function doGet(e){ return handleResponse(e); } function doPost(e){ return handleResponse(e); } function handleResponse(e) { var

Open Google Apps Spreadsheet by name [duplicate]

ⅰ亾dé卋堺 提交于 2021-02-11 15:26:46
问题 This question already has answers here : Open Google Docs Spreadsheet by name (3 answers) Closed 4 years ago . With a script I create a new Google Spreadsheet every day. I'm certain there is only one spreadsheet on the drive with this name, as I trash everything with the same name before creating a new one. But how can I open the spreadsheet with google apps script? I have no ID for the file. I have a small script so I can find the file: function myFunction() { // Log the name of every file

Using triggers with custom functions on Google Apps Script

断了今生、忘了曾经 提交于 2021-02-11 14:50:21
问题 I had a prob with my script, which was greatly answered in this question. Basically custom functions cannot call services that require authorization. However, as far as I understood if I use simple triggers, such as onEdit it could work. I checked the documentation suggested in the previous question, however I wasn't successful applying that to my code, which you can see below: function FileName (id) { var ss = DriveApp.getFileById(id); return ss.getName(); } How could I adapt my code to use

ImportHTML recalculation by the minute

房东的猫 提交于 2021-02-11 14:46:30
问题 Hi I am trying to get the data on my google sheet to be recalculate every minute by using this script. var sh = SpreadsheetApp.getActiveSheet(); var sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1'); var r = "A1"; var f = '=ImportHTML("https://coinmarketcap.com/all/views/all/","table")'; sh.getRange(r).setFormula(f); Utilities.sleep(2000); sh.getRange(2,2,sh.getLastRow(),sh.getLastColumn()-1).setValues(sh.getRange(1,1,sh.getLastRow(),sh.getLastColumn()-1).getValues()); } but I got a