Private Sub DeleteRows()
Application.ScreenUpdating = False
For I = Range("B" & Rows.Count).End(xlUp).Row to 2 step -1
If Range("B" & I).Value = "Inactive" then Range("A" & I).EntireRow.Delete xlUp
Next I
Application.ScreenUpdating = True
End Sub
Private Sub DeleteRows()
Dim I As Long
Dim dRng As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For I = Range("B" & Rows.Count).End(xlUp).Row To 2 Step -1
If Range("B" & I).Value = "Inactive" Then
If dRng Is Nothing Then
Set dRng = Range("A" & I)
Else
Set dRng = Union(dRng, Range("A" & I))
End If
End If
Next I
dRng.EntireRow.Delete
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub