I'd like to have a google script, where: 1-Tab name changes are applied to A1 to A15 from Sheet1 2-Values are cells from B1 to B15 from the same Sheet1
I currently have this script that works perfectly, but the changes are required directly from cells A1 to A15, so the purpose of what I want, it don't work:
function onEdit(e) {
var planilha = SpreadsheetApp.getActiveSpreadsheet();
var aba = planilha.getActiveSheet();
var celula = e.range;
var linha = celula.getRow();
var coluna = celula.getColumn();
if (coluna == 1) {
var nome = celula.getValue();
if (nome != "") {
var abas = planilha.getSheets();
abas[linha].setName(nome);
}
}
}