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

359
Vistas
I can't hide the last column of a Google Sheet using Google Apps scripts

I have this sheet that I need to modify using a script as I am producing a large number of sheets and can't do each one manually:

This is the code I am using that is supposed to hide the last column "AA" from the sheet beside some other things:

code

Every line is working as expected except the one where I try to hide column AA is producing this error and I've already tried a lot of variations to this line all resulting to this error:

Exception: Those columns are out of bounds.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

As mentioned by Yuri Khristich, using SpreadsheetApp.flush() before attempting to hide the last column in the sheet worked.

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