here is an example of a basic form using the call by name function within itself
Private Sub Command1_Click()
MsgBox CallByName(Form1, "ToldYouSo", VbMethod)
End Sub
Public Function ToldYouSo() As String
ToldYouSo = "Hi"
End Function
: True, but if your function is in a module, class, or even form, technically, they are objects and you would just have to reference the name of the form, module, class for which the function is in and you have then supplied the object variable.
:
: : : There is a function in the VBA libraries called "CallByName". You can pass in a String that will call the function you need to call.
: :
: : CallByName calls object methods, not regular functions.
: :
: :
: :
infidel
: :
: :
: : $ select * from users where clue > 0
: : no rows returned
: :
: :
: :
:
: