VBA - On Error GoTo ErrHandler:

后端 未结 2 1650
星月不相逢
星月不相逢 2021-01-24 05:07

I have a simple question about error-handling in VBA. I know how to use the On Error GoTo ErrHandler statement but instead using my own code at the specified label,

2条回答
  •  没有蜡笔的小新
    2021-01-24 05:40

    In your error handler code your can access the Err.Number and Err.Description. The Description in the error message you would have seen without error handling, so is the equivalent of ex.Message in your code sample.

提交回复
热议问题