Debug-friendly Error handler
Recent discussion in Microsoft forums brings attention to old good trick, which was not mentioned here.
Each procedure should have an error handler; else you get application crash in runtime environment. But, when error occurs, you just get your MsgBox, describing error and that’s all. How to debug then? Add Resume statement after your Resume MyProc_End, and when you get MsgBox – press Ctrl+Break, move execution point to Resume and press F8 to go to Error line:
Ok, another option – is to use Global Error Handler, where you can even easier switch to error line.