Notiophilus
Registered User.
- Local time
 - Today, 14:56
 
- Joined
 - Jan 18, 2015
 
- Messages
 - 42
 
Going through my spaghetti code I find the following error handler:
	
	
	
		
What's the purpose of "Resume Next" right before exiting? Can Exit Sub throw an error?
I see this all over the place, but I can't find an explanation though there's plenty of examples of its use, e.g.: https://www.devhut.net/ms-access-vba-error-handling/
 
		Code:
	
	
	ExitHandler:
    On Error Resume Next
    Exit Sub
ErrHandler:
    Call LogError
    Resume Next
End Sub
	What's the purpose of "Resume Next" right before exiting? Can Exit Sub throw an error?
I see this all over the place, but I can't find an explanation though there's plenty of examples of its use, e.g.: https://www.devhut.net/ms-access-vba-error-handling/