I am using a working macro to hide all rows that column B is < 0.
The issue is that it runs slow, is there a more efficient or faster way of accomplishing this?
Here is my working macro:
The issue is that it runs slow, is there a more efficient or faster way of accomplishing this?
Here is my working macro:
VBA Code:
Sub HideZeros()
Dim lrA As Long
StartRow = 10
LastRow = Cells(Rows.Count, "B").End(xlUp).Row
iCol = 2
For i = StartRow To LastRow
If Cells(i, iCol).Value > 0 Then
Cells(i, iCol).EntireRow.Hidden = False
Else
Cells(i, iCol).EntireRow.Hidden = True
End If
Next i
End Sub