E
EagerGit
hi there
I using using this script to hide rows which working fine.
I would like add to it to hide Entire row PLUS every row below it upto 1197.
how can I achieve that??
Thanks in advance
Sub HURows()
BeginRow = 2
EndRow = 1197
ChkCol = 1
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = "hide" Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
Else
Cells(RowCnt, ChkCol).EntireRow.Hidden = False
End If
Next RowCnt
End Sub
I using using this script to hide rows which working fine.
I would like add to it to hide Entire row PLUS every row below it upto 1197.
how can I achieve that??
Thanks in advance
Sub HURows()
BeginRow = 2
EndRow = 1197
ChkCol = 1
For RowCnt = BeginRow To EndRow
If Cells(RowCnt, ChkCol).Value = "hide" Then
Cells(RowCnt, ChkCol).EntireRow.Hidden = True
Else
Cells(RowCnt, ChkCol).EntireRow.Hidden = False
End If
Next RowCnt
End Sub