Hello forum
I'm new here s apologies f I don't get his right, I have a macro code that deletes rows if a cell in column A contains "/C/, but runs a little slow, the code is below. Would anybody be able to improve on this please
Thanks in advance
SubCat()
Application.ScreenUpdating= False
Application.EnableEvents= False
Application.DisplayAlerts= False
Dim c As Range
Dim SearchString
Set SearchString = Range("A1",ActiveSheet.Range("A85000").End(xlUp))
Do
Set c = SearchString.Find("/C/", LookIn:=xlValues)
If Not c Is Nothing Then c.EntireRow.Delete
Loop While Not c Is Nothing
MsgBox("Finished")
Application.ScreenUpdating= True
Application.EnableEvents= True
Application.DisplayAlerts= True
EndSub
Rooster
I'm new here s apologies f I don't get his right, I have a macro code that deletes rows if a cell in column A contains "/C/, but runs a little slow, the code is below. Would anybody be able to improve on this please
Thanks in advance
SubCat()
Application.ScreenUpdating= False
Application.EnableEvents= False
Application.DisplayAlerts= False
Dim c As Range
Dim SearchString
Set SearchString = Range("A1",ActiveSheet.Range("A85000").End(xlUp))
Do
Set c = SearchString.Find("/C/", LookIn:=xlValues)
If Not c Is Nothing Then c.EntireRow.Delete
Loop While Not c Is Nothing
MsgBox("Finished")
Application.ScreenUpdating= True
Application.EnableEvents= True
Application.DisplayAlerts= True
EndSub
Rooster