Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

182
Visualizações
getCurrentCell Value from SpreadsheetApp opened by Id

I'm new to apps script. I'm developing a ticketing system that, from a form responses, automatically creates new spreadsheets with the right ticket on it. It works like a charm but I'm now having a problem...

I just want to know why, even if I activate the sheet opened by id, the function getCurrentCell() always return me the cell A1, even if I have a different cell selected.

This is the simple function:

function getValue() {
  var sheet = SpreadsheetApp.openById(id="").getSheetByName("Open Tickets").activate();
  var cell = sheet.getCurrentCell().getValue().toString();
  Logger.log(cell)
}

Thanks

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda