Trapping Errors [RESOLVED]
Why isn't my error trapped? I've built a code which uses two loops. Since I don't have good conditions to restrict the number of loops I use error trapping for it. But I still get errors that stop the execution of the app (5 - Invalid procedure call or argument) although the line above the one that causes the error is 'On Error Goto EndTags'... :confused:
The code follows this format. If this doesn't help I'll post my code. Thanks. :)
VB Code:
Do
On Error Goto EndTags
If ...
On Error Goto EndAttributes
Do
Loop
EndAttributes:
End If
Loop
EndTags: