Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda