Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA does not recognize Excel worksheet function "indirect" | Excel Programming | |||
Is there an Excel 2003 equivalent to Word's "versions" function? | Excel Discussion (Misc queries) | |||
"MAXIF" Equivalent function in Excel | Excel Worksheet Functions | |||
Mround function equivalent that does not require "add-in" | Excel Discussion (Misc queries) | |||
VBA does not recognize Excel worksheet function "indirect" | Excel Programming |