Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy ComboBox Question (Formula)

Status
Not open for further replies.

monagan

Technical User
May 28, 2004
138
US
I need to know how to use a combobox in a formula.

I have combobox2 with cities

I need to do =VLOOKUP(ComboBox1.value,MyTable,2,0)

What do I need to use instead of ComboBox1.value
because I get #name? error
 
Use the value in the cell linked to the combo box rather than the box variable.
 
...Did you give up on the approach we we working on earlier?
 
ETID,

Yeah I did. I try to stay away from code if I can. But I still like to work with it because I like to learn. Another person had told me about this so I'm trying this to reduce time.
I do appreciate it though, I've printed it out, and definately will be working on it.

jfHewitt,

I do not have a linked cell, this is how I'm filling the combo:

For i = 1 To ActiveWorkbook.Worksheets(1).Range(Me.ComboBox1).Count
Me.ComboBox2.AddItem ActiveWorkbook.Worksheets(1).Range(Me.ComboBox1).Cells(i, 1)
Next i
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top