Category "google-apps-script"

Apps Script to copy data up to last cell containing data in a single column

I am trying to copy the content of a single column and send this range of data in an email. My users submit a for. Their email address are added in column C. I

Old spreadsheets have wrong time and timezone .getValue() from cell

Problem: wrong time and timezone .getValue() from cell with format timeThe bug occurs in old spreadsheets from 2017, but not a spreadsheet from 2022 january or

Move row to a different sheet when box is checked

Hi I'm very new to coding with Google Sheets and Excel. My goal is to move a row when it is checked off. The original sheet is called "School Assignments" and t

Bulk rename file names in Drive Folder with Google Sheets

I need to rename image files in a Google Drive folder I have a Google Sheet with 2 columns, old name and new name I would like to rename the files within the sa

Google App Script. Retrieve emails list from the sheet

In the following script I have to manually insert the email addresses. I rather get the list from the sheet to be able to update it without editing the script.

I have to google apps script that I want to have the data sorted automatically

I have this script below that imports data automatically from several sheets via a master sheet that has a list of sheet IDs. I would like the data to be auto s

Google sheets script Auto-run a script and add function in the menu bar

I use a script that allows me to delete the empty rows in the middle of my table and also constantly adds rows at the bottom so that I can keep filling it. Ever

App Script Array Push() in loop Optimization

I'm looking to improve my array push inside loops but I noticed that every time my function is being called (in a loop manner) and executing this lines of code,

Most efficient way to build range from range based on content (e.g. formula)

What is the most efficient way with google script to build a range (newRange) from another range (baseRange) based on some criteria (e.g. the formula contains '

Syntax error: SyntaxError: missing ) after argument list - Google Sheets (super weird one)

I've been trying to save this macro but I get the error message at line 29. However, everything looks right to me? I cannot understand how to get rid of the err

Fetch Google Drive File path in Google Sheet

Want to fetch Google Drive File path, by exact File Name search with Extension and update in other column "Drive File Path" function onOpen() { let menu = Sp

Convert a date to numeric format google app script

I want to convert a date like this dd/mm/yyyy to numeric format but I don't find any way to do this in google app script For example I have a date in my "L2" ce

How the best and fast way to send multiple data into google spreadsheet?

I want to send multiple data using chrome extension into Google spreadsheet. I tried using loop but sometimes it's replacing the data in the current process. I

Apps Sripts are not executed on shared Google Sheet

I got a Apps Script (onEdit) running, that locks certain cells when a particular time is over, and it also makes a time stamp. The script works perfectly, but o

Inventory management on google sheet

Google sheet stock inventory Hello everyone, I'm turning to you because I can't get my code to work on google Sheets. The purpose of the program is to be able t

Range Not Found, Google Apps Script for Google Sheets

I'm trying to build a custom range for this sort function in an Apps Script for Google Sheets but I keep getting the error: "Exception: Range not found; sortPro

appscript - get multiple selected rows

If i mark and select 5 rows in google sheet. I want to retrieve an array of retrieved rows. Particully column (0). function selectRow() { var sheet = Spreadsh

Google sheet script to delete row if certain cells are empty and add row at the bottom [closed]

I have a sheet with a table with content in the range B6:Y1000. I would like a script that would delete all rows if column C-D-E-F-G are empty

Google script - Service error: Spreadsheets

As of a couple of weeks now, I'm getting a "Service error: Spreadsheets" error when running a script in Google Sheets. Before that, it was working fine. It's su

Apps Script Service Account Ownership Issue

I encounter the following problem: An external app is using a service account to copy Google Sheets from a template folder to a shared drive. After the copy the