Hi everyone
I hope, that some of you are able to help me. I have a large excel sheet with a lot of rows. I column "F" I have the status stated. It can be open, closed or blank. I would like to have a checkbox that hides every row with the status of "Closed".
I have tried this, but that won't work.
Private Sub CheckBox1_Click()
If Range("F31:395").Value = "Closed" Then
[31:395].EntireRow.Hidden = True
Else: [31:395].EntireRow.Hidden = False
End If
End Sub
Best regards
Daniel
I hope, that some of you are able to help me. I have a large excel sheet with a lot of rows. I column "F" I have the status stated. It can be open, closed or blank. I would like to have a checkbox that hides every row with the status of "Closed".
I have tried this, but that won't work.
Private Sub CheckBox1_Click()
If Range("F31:395").Value = "Closed" Then
[31:395].EntireRow.Hidden = True
Else: [31:395].EntireRow.Hidden = False
End If
End Sub
Best regards
Daniel