How to know the procedure by which subroutine called? in excel vba

落爺英雄遲暮 提交于 2020-02-25 05:51:05

问题


I sometimes has error on subroutine.The subroutine is called by many procedure. So, I try to find caller procedure for step over.

By the way, user-defined function can know the caller.
It is simply.

MsgBox Application.Caller

We can see dialog and caller cell address.

I want to know caller procedure of subroutine.


回答1:


You can use Call Stack Dialog Box

For example in the below image proc3 was called by proc2 which is displayed in call stack dialog box.



来源:https://stackoverflow.com/questions/15696462/how-to-know-the-procedure-by-which-subroutine-called-in-excel-vba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!