brian_appliedcpu
asked on
How to Specify Dynamic Function Name
How do you dynamically specify a function name at runtime? Please see the sample code below, where the elements in array arrFunc() are set to either True or False. I want the loop to dynamically call functions fncProcess1, fncProcess2, or fncProcess3, depending on the boolean value of the current array element.
Dim intElement As Integer
Dim strResults as String
For intElement = 1 To 3
If arrFunc(intElement) Then
strResults = Eval("fncProcess" & intElement)
End If
Next
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.