Re: Google Sheets- Scripts
I am trying to write a script for Google Sheets that will add a space after the comma between imported URL's in the same cell. The imported URL addresses are located in column J starting in row 2. I would like this change to happen every time a new row is imported into the sheet. I realize it is proper etiquette to attempt to write the script the best I can. Unfortunately, I do not remember where to start. I have spent some time searching for an example that was close to what I was looking for, but I could not find one. I attached a pic of the sheet. Thank you in advance for your help.
Related
I’m working with Google Sheets and need to extract the edit history of multiple cells in the same column. I’ve seen a lot of responses to this sort of query that extract the information when a cell is newly edited, does anyone know if the information can be extracted from past edits?
It would be ideal if the information could be extracted onto another Google Sheet or a cell in the same sheet, but it’s not a necessity so I am open to any suggestions! Have already given Selenium a go to scrape the information from the edit history window but was not able to specify specific cells to scrape the information for so came to a dead end.
is there a way to move a file from google form submission into another folder based on a rows criteria in google sheets?
I would appreciate any assistance. Thanks.
If I understood correctly your question has two parts: first you want to match a criteria in the responses Sheet. Then, you want to move a file from a folder into another one. If my understanding of the issue is correct, then you can achieve your goal with these easy steps.
In the first place you can use the TextFinder class to look for a match in the response Sheet. If there is a match, then the files should be moved from one Drive folder into another. To run that move you need to open the file first by using DriveApp.getFileById(). Then you can use File.moveTo() to move it to the other folder by providing the folder identifier (it could be done by using DriveApp.getFolderById()). Please, feel free to ask me any additional doubts.
I have been put in charge to automate several Google Sheets for different teams throughout our organization.
It started out with 1 main template. Easy enough.
That template is copied each time a new project comes in.
Eventually a second template was born off of the original (the original is still used as well though)
Some changes were made to the UI of the sheet and I added additional automation based off of the new columns. All seemed well.
As of last week, when I go to the Script Editor of a sheet I get this window:
Let's say I select the first option. If I edit it and test the code, it doesn't work as expected because it's still pulling from the other 2 scripts!
I don't know when or how this happened.
How can I fix this?
You can manage you script by going to: Google Scripts
I would like to create a Google sheet that records any copies that have been made of another Google Sheet even when the user creates a copy by putting 'copy' into the URL (https://docs.google.com/spreadsheets/d/"spreadsheet-ID"/copy).
I have found a solution on the post: Track number of copies made from a google spreadsheet but this doesn't record copies made when changing the URL as the above example.
I would like to know the whole URL of the sheet preferably but just the Spreadhseet ID would still be enough for me.
Has anyone got any ideas how I can record all this data onto a spreadsheet please?
Basically you won't have access to see who is copying your sheet if you use the built-in Make Copy.
What you could do is integrate part of the question you have provided, while disabling the built-in sharing method. So the only way to copy your sheet could be through a custom function you can control and register every time it executes.
Just a general question, I would like to create a user upload form that would convert an .xlsx to the corresponding Google Sheets version and then replace a currently existing sheet on my drive. The main question and aspect that I'm not sure is achievable is replacing a current google sheet. Is a project like this even achievable in a reasonable manner? The reason I want to replace it is because the KeyID for that sheet is used in a couple other app scripts for a website. Thanks for the suggestions and advice.
Yes, this is possible. About being "reasonable", well... I think it is, it's not a single line script, but this is not the most simple task either.
But from what I understood from your use-case (other app script for a website), I think it's better if you enhance your other scripts to either look for the newest sheet on a given folder or fetch the ID from somewhere that you can update from the "form upload" script. Also, by doing this, you'll avoid getting inconsistent data in the middle of an update.