Name of Module from Procedure?

C

Charlotte E.

Is it possible to get the name of the Module, of which the Procedure is part
of, from within a procedure of that Module?

Did you get my question? :)
Kind of an 'ActiveModule.Name' request :)


Thanks,
 
D

dmoney

Application.VBE.ActiveCodePane.CodeModule.Parent.Name should give you what
you need.

dmoney
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top