For Error handling, I would like to have the current procedure name pushed into a call stack.
Is there any simple way to accomplish this outside of having to hard-code the name as a local variable for each subroutine?
For Error handling, I would like to have the current procedure name pushed into a call stack.
Is there any simple way to accomplish this outside of having to hard-code the name as a local variable for each subroutine?
Unfortunately, no. VBA code has no access to the call stack. A decent technique is here under Advanced Error Handling: https://www.fmsinc.com/tpapers/vbacode/Debug.asp