Relative Content

Tag Archive for google-sheetsgoogle-apps-script

How to Show/Hide rows in google sheets using a script?

I’m trying to make a calendar. I want rows 2-37 hidden if someone presses a shape in January, 39-74 if they press it in February etc. The script should take into account the sheet as well. So it only hides rows 2-37 on the active sheet not the sheet next to it.

Transfer background color from cell range to drop down options

Following situation.
I have a drop down table in a cell.
The drop down options are taken from a range of cells, A1:A20 for example.
The cells in A1:A20 have different background colors.
When creating the drop down from the range A1:A20, the background color of all drop down options is white.