Hi All
I am very new to coding in excel and have properly a easy questions that I hope one of you could help me with:
I have created a drop down menu with option "Yes" and "No", the drop down menu is located in a cell I have called "hidemonths"
The months I like to have the option to hide are all in rows. The row numbers are:
15, 17:27, 41:51, 53:63, 65:75, 77:87, 89:99, 101:111, 113:123, 125:135, 137:147, 149:159, 161:171, 173:183, 185:195, 197:207, 209:219, 221:231, 233:243, 245:255, 257:267
I have tried to with a very simpel code to set this up. First for just Row 15 tough it of course should be for all the rows. This without luck... I have the code you see below, and hope one of you could help me get it right...
If [hidemonths] = “Yes” Then
Rows(15).Visible = False
Else
Rows(15).Visible = True
End If
End Sub
Thanks in advance for the help... Hope the issue is clear...
I am very new to coding in excel and have properly a easy questions that I hope one of you could help me with:
I have created a drop down menu with option "Yes" and "No", the drop down menu is located in a cell I have called "hidemonths"
The months I like to have the option to hide are all in rows. The row numbers are:
15, 17:27, 41:51, 53:63, 65:75, 77:87, 89:99, 101:111, 113:123, 125:135, 137:147, 149:159, 161:171, 173:183, 185:195, 197:207, 209:219, 221:231, 233:243, 245:255, 257:267
I have tried to with a very simpel code to set this up. First for just Row 15 tough it of course should be for all the rows. This without luck... I have the code you see below, and hope one of you could help me get it right...
If [hidemonths] = “Yes” Then
Rows(15).Visible = False
Else
Rows(15).Visible = True
End If
End Sub
Thanks in advance for the help... Hope the issue is clear...