CallSub
Previous Top Next

CallSub allows you to dynamically call a sub, which means that the called sub is only known at runtime.
Syntax: CallSub (Sub Name [, Arguments List])
Sub Name - A string that holds the target sub name.
Arguments List - List of arguments passed to the sub (separated by commas).
CallSub is limited to subs with up to 3 String parameters (called ByVal).

Example:
For i = 1 to 3
            If CallSub("SomeSub" & i, arg1, arg2, arg3) > 10 Then ...
Next