this is what i have
tradeid = Me.cmbtradeid.Value
txtdateopen.Value = Application.WorksheetFunction.VLookup(tradeid, Range("A3:L49"), 2, False)
have assigned a command button to call and getting this error
"unable to get the vlookup property of the worksheet function class".
Ideally i want...
setting the return to a text box within a form.
combobox is named cmbtradeid
textbox is named txtdateopen (getting a date)
table range is A3:L49
Returning value from column 2.
thanks for your help.
Sorry I am so confused with this all. Starting from the begining I have an xls with a unique number (tradeid). I want this to be the point of focus to return other values with the same row. VLOOKUP is the way forward? I am struggling to get my form text boxes to display the results of a vlookup...
I am trying to get a Combobox to be the lookup value. Have looked on many sites and cannot get to work, code is below
tradeid = cmbtrade.Value
dateopen = txtdateopen.Value
dateopen = Application.WorksheetFunction.VLookup(tradeid, Sheets("Open_Positions").Range("A3:L49"), 2, False)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.