Hi
I have a worksheet ("Region") with over 300K rows of data . I'd like to delete entire rows where intersecting column F value is "Total USA" with VBA.
For Ex: Delete row 4 if F4 is "Total USA".
I have below code however its giving me Runtime error 424. Appreciate any help modifying code. Thanks
I have a worksheet ("Region") with over 300K rows of data . I'd like to delete entire rows where intersecting column F value is "Total USA" with VBA.
For Ex: Delete row 4 if F4 is "Total USA".
I have below code however its giving me Runtime error 424. Appreciate any help modifying code. Thanks
VBA Code:
Sub RowTotalUSA()
Dim i As Long
Application.ScreenUpdating = False
With Sheets("Region")
For i = .UsedRange.Row.Count To 1 Step -1
If .Cells(Column.Count, i).End(xlUp).Column = "Total USA" Then .Row(i).Delete
Next i
End With
Application.ScreenUpdating = True
End Sub