【发布时间】:2010-11-25 12:24:43
【问题描述】:
为什么我要使用 Exit Sub 退出错误处理程序(处理后),而不是让它进入 End Sub?
我相信这很简单。我只是不明白。感谢您的帮助。
例子:
Public Sub SubA()
On Error Goto ProcError
''# other code
MsgBox FuncA()
ProcExit:
Exit Sub
ProcError:
MsgBox Err.Description
Resume ProcExit
End Sub
【问题讨论】:
标签: vba vb6 error-handling