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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Name of Current Procedure.

Status
Not open for further replies.

Ed2020

Programmer
Nov 12, 2001
1,899
GB
I have created a generic error handling routine that records the nature of runtime errors in a table. As part of this error routine I want to retrieve the name of the current proocedure (that the error occured in) in VBA.

Does anybody know how to do this? The only answer I have found so far is to declare a string constant at the beginning of each procedure - which is far from satisfactory.

Ed Metcalfe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top