Hi Forum,
I'm trying to hide rows based on the value of a cell but I want to know if there was a way to do it WITHOUT macro.
I read that one way to do it is to Right click sheet tab, view code and paste code there. It did not work for me
I want cells 93 and 94 to remain hidden and only become visible when the value of C3 is "Total"
If the value of C4 is changed from "Total" then rows 93 and 94 should be hidden.
Private Sub Worksheet_Hide()
Rows("93:94").Hidden = True
If Intersect(Target, Range("C4")) Is Nothing Then Exit Sub
If Range("C4").Value = "Total" Then Exit Sub
Rows("93:94").Hidden = False
End Sub
Please help
I'm trying to hide rows based on the value of a cell but I want to know if there was a way to do it WITHOUT macro.
I read that one way to do it is to Right click sheet tab, view code and paste code there. It did not work for me

I want cells 93 and 94 to remain hidden and only become visible when the value of C3 is "Total"
If the value of C4 is changed from "Total" then rows 93 and 94 should be hidden.
Private Sub Worksheet_Hide()
Rows("93:94").Hidden = True
If Intersect(Target, Range("C4")) Is Nothing Then Exit Sub
If Range("C4").Value = "Total" Then Exit Sub
Rows("93:94").Hidden = False
End Sub
Please help