'm having an issue using worksheetfuntion.vlookup, i'm sure it just
because i'm missing something so obvious that I can't see it!
I have a multipage control that has a few option buttons on it's
first page, depending on which one is selected by the user, the
contents of a combobox on the second page is altered using the
following code:
If opt1 = True Then cbo1.RowSource = "FirstList"
If opt2 = True Then cbo1.RowSource = "SecondList"
etc etc etc
Where 'FirstList' corresponds to a three-column wide named range on
the worksheet. What i'd then like to do is use vlookup to assign
values from this named range to a number of variables. However, the
code i've come up with keeps failing with a "Run-time Error 1004:
Unable to get the VLookup function of the WorksheetFunction class".
This code causing this is:
myVar3 = WorksheetFunction.VLookup(cbo1.value, Range(cbo1.RowSource),
3, False)
What is it that i'm missing???