The code below is called from another sub. Everything in that sub works as expected. However, when this sub is initiated, it does not delete the rows. The desired result is to delete all rows that contains "After Dispute For SBU" in column J
, When I go into the specific worksheet, the entire used range is selected, but that is where the sub seems to stop. I do not get any error messages. There is another called procedure listed after this one that does work. I cannot see anything wrong with this sub are any cause for it not to complete.
Sub Remove_After_Dispute()
Application.ScreenUpdating = False
With ActiveWorkbook.Worksheets("MIM Data")
Dim DelAftDis As Long
For DelAftDis = Cells(Rows.Count, 10).End(xlUp).row To 2 Step -1
With Cells(DelAftDis, 10)
If .Value = "After Dispute For SBU" Then
Rows(DelAftDis).EntireRow.Delete
End If
End With
Next DelAftDis
End With
Application.ScreenUpdating = True
End Sub