VBA: How long does On Error Resume Next work?

前端 未结 4 1123
日久生厌
日久生厌 2020-11-28 15:55

I\'m reading up on how to use On Error Resume Next and I\'m trying to figure out how long that line will apply to the program. On the Microsoft site, I found t

4条回答
  •  失恋的感觉
    2020-11-28 16:26

    To answer your question "How long does On Error Resume Next work?"

    The answer is: until the next definition of On error ...

    So if you define an On error resume next, it will skip every error until you define a On error goto 0 or On error goto label

提交回复
热议问题