No debug option in VBA runtime error

前端 未结 2 724
臣服心动
臣服心动 2021-01-14 17:22

I am using excel 2013. I do not get any debug option when there is a runtime error. How can I get a debug option during runtime errors?

Edit - I have realized that I

2条回答
  •  甜味超标
    2021-01-14 17:33

    I came across this thread because I had a spreadsheet where I didn't get a debug option when a macro hit an error. I found that if I make a module and put the same sub in the module instead of the Worksheet then I get the debug option when an error occurs.

    If I leave the function in the Worksheet I can set the Options differently. If I leave it on "Break on Unhandled Errors" I only get an error message, if I make it "Break on All Errors" or "Break in Class Module" then I get the debug option when an error occurs.

提交回复
热议问题