D
david cassain
hi all --
simple one for those of you who use formulas or arrays regularly.
In a module I have a public function --> Myfunct( inArray as variant,
inNum as Integer) params are: an array and an int
It works fine.
Now I want to call it from a worksheet formula using a range as the
array parameter.
e.g.: =MyFunct(A11,B2)
That formula syntax doesn't errors and Im stuck as to the proper way
to convert a range (A11) to call my function. Ive checked through
the Excel array formula dox, but I don't see how to refer to a simple
range as an array.
this works ---> = MyFunct({23,34,25,13},B2)
this doesn't --> = MyFunct({A11},B2)
any hints? tips? thanks.
dave
simple one for those of you who use formulas or arrays regularly.
In a module I have a public function --> Myfunct( inArray as variant,
inNum as Integer) params are: an array and an int
It works fine.
Now I want to call it from a worksheet formula using a range as the
array parameter.
e.g.: =MyFunct(A11,B2)
That formula syntax doesn't errors and Im stuck as to the proper way
to convert a range (A11) to call my function. Ive checked through
the Excel array formula dox, but I don't see how to refer to a simple
range as an array.
this works ---> = MyFunct({23,34,25,13},B2)
this doesn't --> = MyFunct({A11},B2)
any hints? tips? thanks.
dave