--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/71d716dc-72e6-4203-9935-b88aebd9247en%40googlegroups.com.
We generally start entering with the name of the sample, then fill out type of sample- this causes onEdit function to happen.
With the 2nd script, createnewsampleresultsheet I am trying to achieve two things- for it to execute when a row is filled out- at the moment it is doing a loop based on what has already been entered and it's also not efficient as it will continue creating the files as column A (sample id) is already filled from 001 to 1000(as an example).
The 2nd thing i'm wanting it to do is to insert the link of the newly created sheet back into the sample ID of the corresponding row- ie 001 text becomes a clickable link.
function getSheetUrl() {
var SS = SpreadsheetApp.getActiveSpreadsheet();
var ss = SS.getActiveSheet();
var url = '';
url += SS.getUrl();
url += '#gid=';
url += ss.getSheetId();
return url;
}
The sheet URL is then put into the sheet with a getRange(...).setValue(url)
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/56880eec-64c2-47f1-954c-3a8288e553dfn%40googlegroups.com.
Legal Disclaimer on behalf of the following companies registered in England and Wales under the following numbers (and all subsidiaries and group companies of the same):
Veolia UK Limited (2664833); Veolia Environmental Services (UK) plc (2215767); Veolia Water UK Limited (2127283); Veolia Energy UK plc (883131);
Registered office 210 Pentonville Road, London N1 9JY.
The information in this email and any associated files is confidential and may be legally privileged. It may also contain information that is subject to copyright or constitutes a trade secret. It is intended solely for the named recipient. Access to this email by anyone else is unauthorised.
If you are not the intended recipient, please note that any use,disclosure, copying, distribution of this email or any action taken or omitted to be taken in reliance on it is prohibited.
Warning: Although this email and any attachments are believed to be free from viruses, it is the responsibility of the recipient to ensure that they are virus free. No responsibility is accepted by any of the Veolia group companies for any loss or damage arising in any way from their receipt or opening.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/ba0ad501-0bd1-4f6d-bb1a-b6309eb7e5ccn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/4bcb81b2-6f3e-4730-96e5-72388bc26eecn%40googlegroups.com.