RyanScharfy
Technical User
I have a list in excel. I'd like to automatically hide the rows that return "N/A#" in column C from row 2 to 40.
The following code is close.. it does it if the values of column C are zero.
Note: I do not want to get rid of the formulas in row C and I do not want to use the filter functionality for ascetic format reasons for the end users.
Sub RwHide()
Dim RwCnt As Integer
For RwCnt = 2 To 40
If Range("C" & RwCnt) = 0 Then
Range("C" & RwCnt).EntireRow.Hidden = True
End If
Next
End Sub
The following code is close.. it does it if the values of column C are zero.
Note: I do not want to get rid of the formulas in row C and I do not want to use the filter functionality for ascetic format reasons for the end users.
Sub RwHide()
Dim RwCnt As Integer
For RwCnt = 2 To 40
If Range("C" & RwCnt) = 0 Then
Range("C" & RwCnt).EntireRow.Hidden = True
End If
Next
End Sub