PDA

View Full Version : string name same as sub name - dynamic



crmpicco
01-06-2006, 07:43 AM
Sub CM_UKtoPortugal_RT()

'... variables for error handling
Const sErrorSource As String = "CM_UKtoPortugal_RT()"



Is there a way to have the string the same name as the Sub name - without hard-coding it?

Picco
http://vbaexpress.com/forum/images/smilies/023.gif

Bob Phillips
01-06-2006, 08:00 AM
Sub CM_UKtoPortugal_RT()

'... variables for error handling
Const sErrorSource As String = "CM_UKtoPortugal_RT()"



Is there a way to have the string the same name as the Sub name - without hard-coding it?

Picco
http://vbaexpress.com/forum/images/smilies/023.gif


No.