Okay, I have a worksheet where Column F contains Check Boxes. At the top of the worksheet I have a checkbox that I want to use to hide rows that have the box in Column F checked.
I tried out the following code and applied it to a regular Form checkbox (not Active-X), and it works great to hide the rows, but will not unhide them when unchecked.
I'm assuming I either missed something in the code or am trying to use code that shouldn't be used for this purpose.
I tried out the following code and applied it to a regular Form checkbox (not Active-X), and it works great to hide the rows, but will not unhide them when unchecked.
I'm assuming I either missed something in the code or am trying to use code that shouldn't be used for this purpose.
Code:
Sub hide()
Dim Rng As Range, cell As Range
Set Rng = Range("F3:F1000")
For Each cell In Rng
Select Case cell.Value
Case Is = True
cell.EntireRow.Hidden = True
Case Else
cell.EntireRow.Hidden = False
End Select
Next cell
End Sub