M
Mike P
I wish to build the name of the function in a string, then reference it. But
I am unable to figure this out. In this example, there is a function I wish
to call name Fun1.
Dim str As String
str = “Fun1()â€
'How do I now call “Fun1()†by using the variable str
This may sound odd, but I will have about 50 functions with the same
name-base and number added, Fun1 – Fun50. I wish to populate a table with
the function names, pull the string from the table, then call the function in
VB code.
Any ideas on how to do this?
If I can't use Functions, can I use Procedures?
I am just trying to cut the code from 50 If Then statements down to a small
loop with an incremental counter.
Thanks in advance for your help!
I am unable to figure this out. In this example, there is a function I wish
to call name Fun1.
Dim str As String
str = “Fun1()â€
'How do I now call “Fun1()†by using the variable str
This may sound odd, but I will have about 50 functions with the same
name-base and number added, Fun1 – Fun50. I wish to populate a table with
the function names, pull the string from the table, then call the function in
VB code.
Any ideas on how to do this?
If I can't use Functions, can I use Procedures?
I am just trying to cut the code from 50 If Then statements down to a small
loop with an incremental counter.
Thanks in advance for your help!