Hi,
I have code below that hides rows which contain number 8 in column A.
I would like to amend code so that it hides rows which contain 8,9,10.11 in column A.
How do I do that?
Thanks,
Nix
I have code below that hides rows which contain number 8 in column A.
I would like to amend code so that it hides rows which contain 8,9,10.11 in column A.
VBA Code:
Sub Hide2()
'Hide rows in a Range that contain Numbers in column K
Application.ScreenUpdating = False
BeginRow = 1
EndRow = 200
ChkCol = 1
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = "8" Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
End If
Next RowCnt
Application.ScreenUpdating = True
End Sub
How do I do that?
Thanks,
Nix