Hi
I'm fairly new to coding so sorry if this is obvious.
I'm trying to show/hide rows in a workbook based on the answers to another field - drop down with data validation. this what I have so far in the worksheet code but it doesn't seem to work.
row 13 is the row i want to show or hide and E12 has the data validation in it
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("E12") = "5k/10k combined" Then
Rows("13:13").EntireRow.Hidden = False
End If
If Range("E12") = "5k" Then
Rows("13:13").EntireRow.Hidden = False
End If
End Sub
help gratefully received
thanks
I'm fairly new to coding so sorry if this is obvious.
I'm trying to show/hide rows in a workbook based on the answers to another field - drop down with data validation. this what I have so far in the worksheet code but it doesn't seem to work.
row 13 is the row i want to show or hide and E12 has the data validation in it
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("E12") = "5k/10k combined" Then
Rows("13:13").EntireRow.Hidden = False
End If
If Range("E12") = "5k" Then
Rows("13:13").EntireRow.Hidden = False
End If
End Sub
help gratefully received
thanks