The Choose function only works if you provide the data in-line
Sub myTest()
Dim a
a = Array(1, 2, 3, 4)
MsgBox Choose(2, a)
End Sub
This function returns error 94 invalid use of Null.
Sub myTest()
MsgBox Choose(2, 1, 2, 3, 4)
End Sub
This function returns 2.
I couldn't see a function that would seek out a value from an array. My
followup question is:
Is there someone that has written a function that would efficiently search
an array? The array that I want to search will be approximately 5000
elements.
Thanks in advance for your help.
Guy