I am trying to hide/unhide cells based on a cell value. When the cell value of sheet("create") equals "RCDO" it will hide rows 22:35 and unhide rows 36:49 on sheet("Form"), when value does not equal "RCDO" then unhide rows 22:35 and hide rows 36:49. The code does not work automatically, meaning I would have to click on the cells of the rows for it to run, versus the codes running as soon as I change the value of the cell.
Private Sub HideRow1()
Application.ScreenUpdating = False
If Sheets("Create").Range("C4").Value = "RCDO" Then
Rows("22:35").EntireRow.Hidden = True
Rows("36:49").EntireRow.Hidden = False
ElseIf Sheets("Create").Range("C4").Value <> "RCDO" Then
Rows("36:49").EntireRow.Hidden = True
Rows("22:35").EntireRow.Hidden = False
Application.ScreenUpdating = True
End If
End Sub