views:

60

answers:

1

I'd like to know if something like this pseudo code:

myVar = "functionName"
call someObject.(myVar evaluation)

which would then be equivalent to:

call someObject.functionName

is possible in VB. I know this is done in some other languages using a GetProperty method. Thanks in advance.

+1  A: 

You can try the CallByName method to accomplish this. There is also an Eval function in VB/VBA.

Garett