strattergize
New Member
- Joined
- Nov 24, 2007
- Messages
- 12
If I have a 2 dimensional VB array, can I perform the equivalent of a vlookup on it? The following code didn't work:
x = WorksheetFunction.VLookup("271", MasterArray, 2, 0)
Or if it is simpler, what code could determine where a given value is in a one-dimensional array? In Excel I would simply use the MATCH function and it would return what position the given value is. If I could know the position then I could just use code like this to retrieve the ultimate value:
x = MasterArray(determined_position_of_value, 2)
Any help would be greatly appreciated! Thanks in advance.
JaredSorensen
x = WorksheetFunction.VLookup("271", MasterArray, 2, 0)
Or if it is simpler, what code could determine where a given value is in a one-dimensional array? In Excel I would simply use the MATCH function and it would return what position the given value is. If I could know the position then I could just use code like this to retrieve the ultimate value:
x = MasterArray(determined_position_of_value, 2)
Any help would be greatly appreciated! Thanks in advance.
JaredSorensen