- Local time
- Today, 10:51
- Joined
- Feb 28, 2001
- Messages
- 30,113
In theory you could try to figure out which line of code is executing and from that, back-track to the SUB declaration for the event - but the overhead of such an action would be prohibitively expensive. Not to mention that it would involve self-referential code, which is a major no-no in any serious programming design. Nor am I sure of exactly how you might do that. But VBA knows which line it is because the debugger can show the line that failed.