google-apps-script

in Google Apps Script; using Regular Expression & Conditional formatting - to create a IPv4 address validator / checker

这一生的挚爱 提交于 2020-06-17 03:42:29
问题 in Google Apps Script; using Regular Expression & Conditional formatting - to create a IPv4 address validaton / checker 1. VALIDATING the input with regular expression : I try to make a script to get feedback of a validator, to check if the input an IP addresses is. regular expression pattern : cell ' ip!I12 ' named ' REGEXP_IP_pattern ' : ^((((25[0-5])|(2[0-4][0-9])|([01]?[0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|([01]?[0-9]{1,2}))) reg exp demo : https://regexr.com/54fon - works fine (in

Google Sheets: count numbers of HYPERLINKS where value > 0

本小妞迷上赌 提交于 2020-06-17 02:05:05
问题 I have a range of cells in Google Sheets Some of these cells contain values (numbers) some with and others without HYPERLINKS I need to count the number of hyperlinks for this range of cells if the value > 0 This function works fine, but does not include any cell-values Counting hyperlinks on Google Sheets formula 回答1: You want to calculate the number of cells which have the formulas of =HYPERLINK() and the value more than 0 . This is run for one row and also there are the cells which have no

Google Email: Button/Link which trigger a script for sheet

寵の児 提交于 2020-06-17 00:08:54
问题 I am looking for a way to send an email with Google App Script (I know how to do that) which includes an approval button/link. When the user clicks the link/button in the email to approve the request, I want to trigger a script (this is the part I do not know if possible from email) which goes back to the Google Sheet and changes a value in a cell. Example: User A submits a request using google form, and a new row is appended in SheetA. With some formulas, I automatically associate an ID = X

Google Email: Button/Link which trigger a script for sheet

别说谁变了你拦得住时间么 提交于 2020-06-17 00:07:19
问题 I am looking for a way to send an email with Google App Script (I know how to do that) which includes an approval button/link. When the user clicks the link/button in the email to approve the request, I want to trigger a script (this is the part I do not know if possible from email) which goes back to the Google Sheet and changes a value in a cell. Example: User A submits a request using google form, and a new row is appended in SheetA. With some formulas, I automatically associate an ID = X

Google Apps Script - Is it possible to allow change to some cell in Sheets only through GoogleAppScript?

百般思念 提交于 2020-06-16 23:51:13
问题 My making a catalog in Google SpreadSheet. My spreasheet has a table where the user can add information. This table is dynamically created through a Script that gets the data from the database sheet. The user can edit some cells in the table and click on a button that saves the changes back into the database sheet. I want to limit the cells he can edit manually, but I can´t protect theses cells, because there is a script that modifies it (since the table is dynamically generated through a

Shift Cell Range in Google Sheets

馋奶兔 提交于 2020-06-16 17:34:09
问题 I'm trying to take a range of cells and shift them all to the right by one cell. I'd like this to occur once per weekly automatically. I'm aware in the Script editor I can create a trigger for it to schedule weekly, but I'm not sure how to code it. If someone can help provide a code that allows me to indicate which SHEET and CELL RANGE to shift to the right by one cell, I would appreciate it. Basically, what I'm trying to accomplish is tracking data for a number of weeks. Each week the sheet

G Sheets Table of Contents Script

女生的网名这么多〃 提交于 2020-06-16 17:27:55
问题 For Google sheet workbooks that have several sheets, I create a Table of Contents sheet that lists all of the sheets in the workbook to increase ease of use for users. I have looked for an add-on, macro, or script that can speed up the process. No dice. Any ideas for how to automate the process of creating a new sheet that lists the names of all of the other sheets (One sheet name per cell) and then automatically links the cell to that sheet? 回答1: script: function SHEETLIST() { try { var

New Google Account not able to access script.google.com

泄露秘密 提交于 2020-06-16 17:25:23
问题 A colleague opened a new Google Account and I shared a Google Sheet with her which had scripts attached. She gave me her temporary password so I could go through the process of authorizing her for the scripts. I have walked lots of people through this process before, so was surprised that when I tried to trigger the script (through a button in the sheet), this happened: First I received the expected message: "Authorization Required: A script attached to this document needs your permission to

How to delete all unprotected rows in a range of particular sheets from Google Sheets using Apps Scripts

╄→尐↘猪︶ㄣ 提交于 2020-06-16 17:25:14
问题 I have several protected range in a sheet of my Google Sheets for example, A2 to F40 and then A45 to F90. I do this protected range using a button (menu--submenu). But there are few rows of data unprotected throughout a range of particular sheets having names using alphabets and numbers together (e.g. ICT4113, MATH4104 or HUM4119). There are few other sheets having names containing only alphabets which does not require this function. How can I delete those unprotected rows of data throughout

Google Apps Script cannot convert from GAS managed to specific Cloud Project

馋奶兔 提交于 2020-06-16 16:52:51
问题 I have a GAS managed project which i want to convert to a specific google standard cloud project. I have the ID. I enter it in Resources/Cloud Managed Project and i get :- "Project does not exist or you need edit access to it." It does exist and i have permissions as I am the owner. 回答1: The error is somewhat misleading and it took me a while to figure out what was going on, but the issue is that when you're replacing the default "App Script managed" project, if you're not the owner of that