ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Name of Module from Procedure? (https://www.excelbanter.com/excel-programming/415897-name-module-procedure.html)

Charlotte E.

Name of Module from Procedure?
 
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,



dustinbrearton via OfficeKB.com

Name of Module from Procedure?
 
This previous post might help you.

http://www.officekb.com/Uwe/Forum.as...ive-VBE-Module

Charlotte E. wrote:
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,


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200808/1


DMoney

Name of Module from Procedure?
 
Application.VBE.ActiveCodePane.CodeModule.Parent.N ame should give you what
you need.

dmoney

"Charlotte E." wrote:

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,




Charlotte E.

Name of Module from Procedure?
 
And it did :-)

Thanks - worth 'd money' :-)


"dmoney" skrev i en meddelelse
...
Application.VBE.ActiveCodePane.CodeModule.Parent.N ame should give you what
you need.

dmoney

"Charlotte E." wrote:

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,







All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com