Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Combobox selection to fill in textboxes

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Combobox selection to fill in textboxes

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
Load UserForm ComboBox And Autofill 124 TextBoxes Minitman Excel Programming 2 May 1st 08 08:56 PM
Individual values from a Combobox List placed in textboxes Corey Excel Programming 2 January 30th 07 03:31 PM
Filling Textboxes from Combobox selection Corey Excel Programming 14 January 22nd 07 09:54 AM
searching for a combobox.value and filling in textboxes from results GregJG[_18_] Excel Programming 3 July 8th 04 12:41 PM


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"