Noname > 24-04-11, 01:48 PM
'*******Code Start*******
'This code was originally written by Dev Ashish
'It is not to be altered or distributed,
'except as part of an application.
'You are free to use it in any application,
'provided the copyright notice is left unchanged.
'
'Code Courtesy of
'Dev Ashish
'
Function fEval(status As String)
Dim strFunctionName As String
Dim x
If status = "A" Then
strFunctionName = "TestThat()"
Else
strFunctionName = "TestThis()"
End If
fEval = Eval(strFunctionName)
End Function
Function TestThis()
Debug.Print "Test This"
End Function
Function testThat()
Debug.Print "Test That"
End Function
'*******Code End**********
Noname > 25-04-11, 02:36 PM