Hi
In one cell I have a Data Validation list so the users can choose a question. (Source: Choose, Automation?, No Automation?)
If they choose "Choose" I would like to hide rows 59 to 79.
If they choose "Automation?" I would like to hide rows 59 to 63.
And if they choose "No automation?" I would like to hide rows 64 to 79.
I have tried:
Great if I want to use one selection but not multiple.
Can you please help?
Thanks
Gary
In one cell I have a Data Validation list so the users can choose a question. (Source: Choose, Automation?, No Automation?)
If they choose "Choose" I would like to hide rows 59 to 79.
If they choose "Automation?" I would like to hide rows 59 to 63.
And if they choose "No automation?" I would like to hide rows 64 to 79.
I have tried:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i As Integer
Application.ScreenUpdating = False
If Range("C56:C56") = "Automation?" Then
For i = 59 To 63
Rows(i).RowHeight = 0
Next i
Else
For i = 59 To 63
Rows(i).RowHeight = 18.75
Next i
End If
End Sub
Great if I want to use one selection but not multiple.
Can you please help?
Thanks
Gary