Hi all,
Does anyone know if there is a way to programmatically (is that a real word
) access the name of the current sub?
Something like this:
The reason I want it is I've got some standard error checking on each of my procedures and I want them to report back more detail. I just don't want to go through each one manually setting the name of the sub to report back. If there's a way to get the name of the sub pragmatically I could just do a quick find and replace on the entire project.
As ever, thanks in advance for any and all help given.
TTFN
Does anyone know if there is a way to programmatically (is that a real word
Something like this:
Code:
Sub ProcA
msgbox "Sub: " & me.SubName & "Module: " & me.ModuleName
end sub
Sub ProcB
msgbox "Sub: " & me.SubName & "Module: " & me.ModuleName
end sub
The reason I want it is I've got some standard error checking on each of my procedures and I want them to report back more detail. I just don't want to go through each one manually setting the name of the sub to report back. If there's a way to get the name of the sub pragmatically I could just do a quick find and replace on the entire project.
As ever, thanks in advance for any and all help given.
TTFN