Private sub A
dim str as String
str=B()
End Sub
Private sub D
dim str as String
str=B()
End Sub
Private sub B as String
dim caller as String
caller=..... ' How to get this info?
if caller="sub A" then
return "Hello A"
else
return "Hello B"
end if
End Sub