Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a combobox that I want to select a value which will then fill
textboxes with values from the column 2, column3 , etc. Column 1 Column 2 Column 3 Last Name First Name Nickname Dungate Deborah Deb Dungate Dominique Dom I should get: Last Name: Dungate First Name: Deborah Nickname: Dom I am using: Private Sub ComboBox1_Change() TextBox50.Value = Combobox1.Column(1) TextBox51.Value = Combobox1.Column(2) End Sub I get the error: "Could not get the column property. Invalid Property" Can someone help me with the error. What code do I sue |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I believe you will need to use the List property of the combobox.
TextBox50.Value = Combobox1.List(0, 1) 'first row, first col of CB "Tdungate" wrote: I have a combobox that I want to select a value which will then fill textboxes with values from the column 2, column3 , etc. Column 1 Column 2 Column 3 Last Name First Name Nickname Dungate Deborah Deb Dungate Dominique Dom I should get: Last Name: Dungate First Name: Deborah Nickname: Dom I am using: Private Sub ComboBox1_Change() TextBox50.Value = Combobox1.Column(1) TextBox51.Value = Combobox1.Column(2) End Sub I get the error: "Could not get the column property. Invalid Property" Can someone help me with the error. What code do I sue |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
Load UserForm ComboBox And Autofill 124 TextBoxes | Excel Programming | |||
Individual values from a Combobox List placed in textboxes | Excel Programming | |||
Filling Textboxes from Combobox selection | Excel Programming | |||
searching for a combobox.value and filling in textboxes from results | Excel Programming |