mbentley
Registered User.
- Local time
- Today, 05:37
- Joined
- Feb 1, 2002
- Messages
- 138
Does anyone know of a way to interrogate the name of the subroutine currently running? I just want to use if for my error handler, which messages the user as follows:
MsgBox "OBJECT_EVENT - Error #" & Err.Number & ": " & Err.Description
For each event, I overwrite "OBJECT_EVENT" with the actual name of the sub. I'd prefer to write some generic code that I don't have to edit for each subroutine.
Minor point, but I thought I'd ask.
Thanks in advance.
MsgBox "OBJECT_EVENT - Error #" & Err.Number & ": " & Err.Description
For each event, I overwrite "OBJECT_EVENT" with the actual name of the sub. I'd prefer to write some generic code that I don't have to edit for each subroutine.
Minor point, but I thought I'd ask.
Thanks in advance.