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

111
Vistas
Can you put code in alerts for app script

I'm new to app script and I was just wondering if there was a way to input a cell value into an alert.

I tried

var ui=SpreadsheetApp.getUi()
var winScreeen = ui.alert('Win:',sr.getRange('U5').getValue())
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Another way to alert

function myalert() {
  const ss = SpreadsheetApp.getActive();
  SpreadsheetApp.getUi().alert(`win:${ss.getRange("Sheet0!A2").getValue()}`);
}

Template Literals

about 4 years ago · Juan Pablo Isaza Denunciar

0

Instead of

var winScreeen = ui.alert('Win:',sr.getRange('U5').getValue())

use

var winScreeen = ui.alert('Win:' + sr.getRange('U5').getValue())

The above used + to concatenate two values.

about 4 years ago · Juan Pablo Isaza Denunciar
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