H
H.G. Lamy
Hello,
by this:
=INDEX(INDIRECT($A$1),(RAND()*COUNTA(INDIRECT($A$1)))+1)
I often pick random elements from a list (named range), whose name is typed
into $A$1.
However, the attempt to make this a UDF function in VBA fails, since
"INDIRECT()" is not part of the "worksheetfunction"-collection in VBA.
Is there any equivalent that may do the trick ?
Thank you in advance.
Kind regards,
H.G. Lamy
by this:
=INDEX(INDIRECT($A$1),(RAND()*COUNTA(INDIRECT($A$1)))+1)
I often pick random elements from a list (named range), whose name is typed
into $A$1.
However, the attempt to make this a UDF function in VBA fails, since
"INDIRECT()" is not part of the "worksheetfunction"-collection in VBA.
Is there any equivalent that may do the trick ?
Thank you in advance.
Kind regards,
H.G. Lamy