I think i got it working now...
Private Sub worksheet_SelectionChange(ByVal Target As Range)
Dim cn As Range
Set cn = Range("C12")
On Error GoTo endbit:
If cn.Value = CVErr(xlErrNum) Then
Rows("1:13").EntireRow.Hidden = True
Exit Sub
endbit:
On Error Resume Next
Rows("1:13").EntireRow.Hidden = False
End If
End Sub
the above code will hide the row range when there is the #NUM! error in C12 of the Summary sheet and if there is no #NUM! error in C12 on the Summary sheet it will unhide the row range.
I hope this works for you. let me know.
Bookmarks