I want to un-hide all the hidden rows and columns when I open the spreadsheet.
How can I do that for all sheets?
google sheetsgoogle-apps-script
I want to un-hide all the hidden rows and columns when I open the spreadsheet.
How can I do that for all sheets?
Best Answer
You can accomplish that with this piece of code.
Code
Explained
The
onOpen
trigger will be activated upon opening of the spreadsheet. The script will find the outer bound of the sheet, for both columns and rows. First the columns are shown, followed by the rows. This code works for all sheets available.Example
I've created an example file for you: unhide rows and columns upon opening
References
Edit
h/t : changed the code according to the suggestions AdamL made: