Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

App script in google sheet is very delay! [closed]

$
0
0

Could you please share app script & advise to us.

Because it's very delay!

function onEdit() {var s = SpreadsheetApp.getActiveSheet();if( s.getName() == "KKV_COLLECTING RECORD" ) { //checks that we're on Sheet1 or notvar r = s.getActiveCell();if( r.getColumn() == 12) { //checks that the cell being edited is in column Avar nextCell = r.offset(0, 1);if( nextCell.getValue() === '' ){nextCell.setValue(new Date());} //checks if the adjacent cell is empty or not?}else{  Edit1()}}}function Edit1() {var s = SpreadsheetApp.getActiveSheet();if( s.getName() == "KKV_COLLECTING RECORD" ) { //checks that we're on Sheet1 or notvar r = s.getActiveCell();if( r.getColumn() == 11) { //checks that the cell being edited is in column Avar nextCell = r.offset(0, 1);var nextCell1 = r.offset(0, 1); if( nextCell.getValue() === '' ){nextCell.setValue(new Date());} //checks if the adjacent cell is empty or not?}}}

Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>