Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nothing built into VBA allows you to do this.
You have to keep track of it yourself. Chip Pearson has some code that may help you: http://cpearson.com/excel/InsertProcedureNames.aspx IIRC, MZTools has this ability, too: http://www.mztools.com/ ErdincEKaracam wrote: Dear Sirs, I want to learn that how to get the current module name and Sub in VBA? For example: In a standard module named as "MPEP" ; Sub XYZ() Msgbox "It's an Example" End Sub The result should be: For Module Name: MPEP and For Sub Name: XYZ How we can do this with VBA? Thanks inadvance. Erdinç. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
current week, current month, current year | Excel Programming | |||
Calls from sheet module to ThisWorkbook module | Excel Programming | |||
On Error, Capturing current module and actual line of code | Excel Programming | |||
Calling Macros oustide current module | Excel Programming | |||
Variable from a sheet module in a class module in XL XP | Excel Programming |