Answer the question
In order to leave comments, you need to log in
How to implement cell range notifications in Google Sheets?
Guys, please help. There is such a script for google sheets:
var url = ' https://hooks.slack.com/services/ ';
function sampleName(e){
var newValue = e.value;
var oldValue = e.oldValue;
var user = e.user;
var payload = {
'text' : user + " Изменено с " + oldValue + " на " + newValue + " :wink:"
};
var params = {
'method' : 'post',
'contentType' : 'application/json',
'payload' : JSON.stringify(payload)
};
return UrlFetchApp.fetch(url, params)
Answer the question
In order to leave comments, you need to log in
The simplest is to check the cell address
function sampleName(e){
// Если изменилась ячейка B5 пользователем
if (e && e.range && e.range.getColumn() == 2 && e.range.getRow() == 5) {
// тут все делается
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question