In the definition of the procedure, the ParamArray parameter is defined as an array of a type other than Variant. Redeclare the parameter type as an array of Variant elements.
ExcelのSUM関数が、SUM(A1, A2)のように引数が2個でも、SUM(A1, A2, A3, A4, A5)のように5個でも、いくつでも引数を受け付けてくれるのを、不思議に思ったことはありませんか?VBAで、これと同じように、呼び出すたびに引数の個数が変わるような、柔軟な関数を自作 ...