Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get subroutine name in VBA

Status
Not open for further replies.

KillerChairs

Programmer
May 5, 2005
4
US
Is there a way to get the subroutine name in VBA? I want to write a standard error-handling routine and would like to automagically capture the subroutine name (I can easily get the Form Name, RecordSource, etc).
 
AFAIK VBA procedure names are not exposed this way. I supply the name of the procedure that calls my error handler as a parameter.


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top