Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

362
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!