Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following code for inserting data on a user form based on a number on a cell in a worksheet: Private Sub ComboBox1_Click() TextBox2.Text = WorksheetFunction.VLookup(ComboBox1.Text, Worksheets("Blending Details").Range("A2:Z500"), 2, False) End Sub When I put a word in the combo box the lookup is successful and I get the value returned in textbox2. But when a number is in the combox I get a runtime error. Any ideas? Thanks gregork |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup column using text not col number | Excel Worksheet Functions | |||
Lookup existence of a cell phone text number | Excel Discussion (Misc queries) | |||
Excel 2002: How to lookup the last number and text in a column ? | Excel Discussion (Misc queries) | |||
Lookup functions in Works Spreadsheet 8.0 | Excel Worksheet Functions | |||
lookup or find matching number in text string | Excel Worksheet Functions |