Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a combobox on a userform.
I would like when user selects a Client Name from the combo box the Address appears in txtAddr1, Addr2,Addr3 ....... I have come up with the code below but clearly I have made a mistake somewhere. Thanks very much in advance. Steve Private Sub cboClient_Change() On Error GoTo Error txtaddr1.Text = Application.WorksheetFunction.VLookup(cboClient.Te xt, ClientNames!Client_Name, 2, False) Exit Sub Error: txtaddr1.Text = "Error" End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use named range to fill Userform combobox XL2003? | Excel Programming | |||
Populating Userform ComboBox with worksheet names in XL2003 | Excel Programming | |||
Vlookup in a userform | Excel Discussion (Misc queries) | |||
Vlookup / Objects help XL2003 | Excel Discussion (Misc queries) | |||
Populate Userform text boxes in VBA with VLookup data from #2 worksheet | Excel Programming |