A script cannot contain two functions with the same name. Rename your first onEdit
function to onEdit1
(actually it will be better to assign a descriptive name), then add the following function:
function onEdit(e){
onEdit1(e);
onEdit2(e);
}
A script cannot contain two functions with the same name. Rename your first onEdit
function to onEdit1
(actually it will be better to assign a descriptive name), then add the following function:
function onEdit(e){
onEdit1(e);
onEdit2(e);
}