I'm new to javascript and need to copy 3 colums of a google spreadsheet to a second sheet (one column has hyperlink url value).
My main sheet "Responses" creates a new row of data when a website booking form is submitted. I need to copy the last row entry to the next sheet, "Sheet1".
The first sheet "Responses" should copy the last row, column K, M and column V (a website hyperlink). Pasted values should go in the next available row of "Sheet1" column A, B and C respectively, with the active hyperlinks in column C of "Sheet1".
I'm looking for javascript for google apps script, so I can put it on a macro/trigger, to copy the new entry to the next sheet automatically.
Can anybody help with the script please?
To get you started in using Google App Script with Spreadsheet, here is an example script that will do what you want. As a habit I always wrap my code in try {} catch {} block so when my project gets big I can tell where the error occured.
Code.gs
Reference