Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Data is in following arrangement Col A Col B 1 A B 2 A1 B1 3 A2 B2 4 A3 How can I populate a combo box with A and B (catagory), and display corresponding values in a List Box. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Atif,
You have many options. The easiest way through this would be to combine the values into a third column and use a Form combobox with a list range. You could also do this programatically with a control combobox and combine the values into one column or two. -- http://www.ExcelHelp.us 888-MY-ETHER ext. 01781474 "Atif" wrote: Hi All, Data is in following arrangement Col A Col B 1 A B 2 A1 B1 3 A2 B2 4 A3 How can I populate a combo box with A and B (catagory), and display corresponding values in a List Box. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
It can be done like this: Private Sub ComboBox1_Click() If Me.ComboBox1.Value = Range("A1").Value Then Me.ListBox1.RowSource = "A2:A4" ElseIf Me.ComboBox1.Value = Range("B1").Value Then Me.ListBox1.RowSource = "B2:B4" End If End Sub Private Sub UserForm_Initialize() Me.ComboBox1.AddItem Range("A1").Value Me.ComboBox1.AddItem Range("B1").Value End Sub Regards, Per "Atif" skrev i meddelelsen ... Hi All, Data is in following arrangement Col A Col B 1 A B 2 A1 B1 3 A2 B2 4 A3 How can I populate a combo box with A and B (catagory), and display corresponding values in a List Box. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Generate a combination list of values | Excel Programming | |||
How to get all number combination from a list | Excel Programming | |||
Combination of Validation List and VLOOKUP Problem | Excel Worksheet Functions | |||
Filtered list for Combo Box ListFillRange - Nested Combo Boxes | Excel Programming | |||
Combination of 2 combo boxes to populate 3rd | Excel Programming |