With the code below:
Application.ScreenUpdating = False
Application.EnableCancelKey = xlDisabled
On Error GoTo ErrorHandler
'Código
Exit Sub
ErrorHandler:Application.ScreenUpdating = True
'Código caso erro
End Sub
ScreenUpdating = False coming before On Error GoTo ErrorHandler in code, does it interfere with the application of On Error?