I read so many forums but cant find an answer to what is likely a simple matter. I need Time Stampstimestamps on 2two different sheets to make 2two different Dependent Drop Boxesdependent drop boxes work. I use the scriptscripts below but can only get 1one sheet to work adand not both sheets. Any help would be really appreciated!:
###Script time in
function onEdit(event) {
//SETTINGS
var tsheet = 'In';
var lcol = 2;
var rcol = 8;
var tcol = 9;
//
var s = event.source.getActiveSheet();
var sname = s.getName();
if (sname == 'In') {
var r = event.source.getActiveRange();
var scol = r.getColumn();
if (scol>= lcol<=rcol) {
s.getRange(r.getRow(), tcol).setValue(new Date());
}
}
}
###Script Time out
function onEdit(event) {
//SETTINGS
var tsheet = 'Out';
var lcol = 2;
var rcol = 8;
var tcol = 9;
//
var s = event.source.getActiveSheet();
var sname = s.getName();
if (sname == 'Out') {
var r = event.source.getActiveRange();
var scol = r.getColumn();
if (scol>= lcol<=rcol) {
s.getRange(r.getRow(), tcol).setValue(new Date());
}
}
}