I have tried to use multiple error handling in a VBA code
Sub ErrorTestMultiple()
Test1:
On Error GoTo ErrHandler1
y = 6 / 0
GoTo Test2
ErrHandler1:
Cells(4, "H") = "Test 1 failed"
Cells(4, "I") = Err.Description
Test2:
On Error GoTo ErrHandler2
y = 6 / 0 ' Process stop here - Why is the 2nd Error handler not working?
GoTo Test3
ErrHandler2:
Cells(5, "H") = "Test 2 failed"
Cells(5, "I") = Err.Description
Test3:
End Sub
I tried adding resume following example in here but it didn't work iter
How can I make it work?