Top "Google-apps-script" questions

Use for questions about Google Apps Script, Google's JavaScript-based cloud scripting platform for automating tasks across Google products and third-party services.

How to get the correct range to set the value to a cell?

I want to set text or number in Google Sheet from script. I want to set Hello or number 9 in …

google-apps-script google-sheets
How do you add UI inside cells in a google spreadsheet using app script?

I'd like to add buttons to specific cells in Google docs spreadsheet. The apps script UI documentation talks about how …

user-interface google-apps-script google-sheets
Sheet.getRange(1,1,1,12) what does the numbers in bracket specify?

Sheet.getRange(1,1,1,12) I cannot understand the arguments 1,1,1,12 . What is this - the sheet id or row or what? method getRange(…

google-apps-script google-sheets google-spreadsheet-api
Google Forms file upload complete example

How do I allow my viewers to use Google Forms to upload some files to my form and save it …

file-upload google-apps-script google-forms
TypeError: Cannot read property "0" from undefined

I'm getting a very weird undefined error: function login(name,pass) { var blob = Utilities.newBlob(pass); var passwordencode = Utilities.base64…

javascript google-apps-script runtime-error
Script to Change Row Color when a cell changes text

I have a Google spreadsheet where I keep a list of bugs and whenever I fix a bug I change …

google-apps-script google-sheets gs-conditional-formatting
Determining the last row in a single column

I have a sheet with data in cols A through H. I need to determine the last row in column …

google-apps-script google-sheets
Count the cells with same color in google spreadsheet

I'm trying count the number of cells with the same background color and put the result in other cell with …

javascript google-apps-script google-sheets
How to debug Google Apps Script (aka where does Logger.log log to?)

In Google Sheets, you can add some scripting functionality. I'm adding something for the onEdit event, but I can't tell …

debugging google-apps-script google-sheets triggers
Printing to the console in Google Apps Script?

I am very new to programming (have taken some of the JS courses on Codecademy). I am trying to create …

logging google-apps-script console.log