Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi folks,
Is there any way to refer to a subroutines name from within the subroutine itself in the same way that you can have: ActiveWorkbook.Name Thanks, Al |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Al,
I don't think that there is any way that you can get this information from the system, VBA, or Excel. To get what you want, I think you would have to manage it all yourself. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Al" wrote in message om... Hi folks, Is there any way to refer to a subroutines name from within the subroutine itself in the same way that you can have: ActiveWorkbook.Name Thanks, Al |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why would you ever need to?
sub test() test 'recursive call if a<"" then test 'ditto end sub -- John johnf 202 at hotmail dot com "Al" wrote in message om... | Hi folks, | | Is there any way to refer to a subroutines name from within the | subroutine itself in the same way that you can have: | | ActiveWorkbook.Name | | Thanks, | Al |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you called the sub using the CallByName function, you could pass
the name of the sub as an arguement. I too have no idea why you'd want to do this, but then I've never found a legitimate use of CallByName. -- "jaf" wrote in message ... Why would you ever need to? sub test() test 'recursive call if a<"" then test 'ditto end sub -- John johnf 202 at hotmail dot com "Al" wrote in message om... | Hi folks, | | Is there any way to refer to a subroutines name from within the | subroutine itself in the same way that you can have: | | ActiveWorkbook.Name | | Thanks, | Al |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Call a subroutine using variable subroutine name | Excel Discussion (Misc queries) | |||
SUBROUTINE HELP | Excel Discussion (Misc queries) | |||
Second subroutine to run automatically | Excel Programming | |||
editing a subroutine | Excel Programming | |||
Every second subroutine | Excel Programming |