Excel VBA call function with variable name

后端 未结 4 1146
不思量自难忘°
不思量自难忘° 2020-12-28 10:34

I\'m trying to call a function with a variable name that is generated at run time based upon a combo box value. This is straightforward in most languages but I can\'t seem

4条回答
  •  自闭症患者
    2020-12-28 10:49

    The above will work but not with a large number of names

    Use Application.Run(MacroName, Parameters)

    You have to may sure that there is a macro but it is better than the above as there is no select statement.

提交回复
热议问题