Beginner here! I have this code where it tries to find a certain criteria, but if it doesn't find it I want it to loop back to the beginning and try another criteria. My issue is after it fails once, the On Error GoTo will not work again since it's already on a hard fail (atleast from what I've read). Is there any way to make it loop even if it's already failed once? Also note that if it does pass(IE find the creteria, it goes through a whole process and then loops back to the start hence the Do right after ErrHandler) Below is the code
Code
ErrHandler:
Do
Sheets("control sheet").Select
Range("B1").Select
Selection.End(xlDown).Select
Selection.Cut
Range("A1").Select
ActiveSheet.Paste
ErrorCode = Range("A1")
Sheets("Raw data").Select
Columns("AL:AL").Select
On Error GoTo ErrHandler
Selection.Find(What:=ErrorCode, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
On Error GoTo ErrHandler
Display More