Hi,
I have the following code but it's not working.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$Z$31" Then
Rows("37:44").Hidden = True
If Target.Value < 1.2 Then Rows("37:44").Hidden = False
End If
End Sub
Could someone please tell me why it's not working? As I change the value in cell Z31, Row 37 to 44 does not hide or unhide. Thanks in advance.
I have the following code but it's not working.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$Z$31" Then
Rows("37:44").Hidden = True
If Target.Value < 1.2 Then Rows("37:44").Hidden = False
End If
End Sub
Could someone please tell me why it's not working? As I change the value in cell Z31, Row 37 to 44 does not hide or unhide. Thanks in advance.