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

361
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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