LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 237
Default Having data populate text boxes based on Combobox Value

On Sheet2 I have a table comprised of 3 columns. the
table is located in Range A3:C52.

In Range A3:A52, there are Employee ID numbers.
In Range B3:B52, there are Names.
In Range C3:C52, there are Email Addresses.

On a userform(Userform3), I have a ComboBox(ComboBox1).
ComboBox1 can contain the employee ID, Name, or Email
Address. UserForm3 also contains 3 text boxes. Textbox1,
TextBox2, and TextBox3.

TextBox1 is where the Employee ID will be, TextBox2 is
where the Name will be, and TextBox3 is where the Email
Address will be. The values in these 3 textBoxes will
depend on what the value of ComboBox1 is.

I need for these 3 textboxes to look at the value in
ComboBox1 and then look at the table on Sheet2 Range
A3:C52 and pull back the corresponding data. I need for
this data to be put in the 3 textboxes. For instance, if
ComboBox1 contains the value "Todd Huttenstine", I need
for TextBox1, TextBox2, and TextBox3 to display the
corresponding data. Lets say the value "Todd Huttenstine"
is located in cell A14 in the Table (which is located in
Range A3:C52). Because the Value Todd Huttenstine is
found within this range, the textboxes populate with the
corresponding value. That is Textbox1 populates with the
A column value(Cell A14 value), Textbox2 populates with
the B column value(Cell B14 value), and Textbox3 populates
with the C column value(Cell C14 value).

Regardless of if Employee ID number, Name, or Email
Address is in ComboBox1, I need the textboxes to auto-
populate with the corresponding values in the table on
sheet2.


I hope this is not confusing. Thanks in advance.


Todd Huttenstine
 
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
Populate Text based on conditions envy Excel Worksheet Functions 1 December 5th 09 09:52 PM
Pulling data from other wb based on data to populate dropdown list Suzann Excel Discussion (Misc queries) 0 April 23rd 09 04:29 PM
Populate column based on data in other cells JR Excel Discussion (Misc queries) 2 September 4th 07 05:38 PM
How do i populate a text box according to selection in combobox? Steve Excel Worksheet Functions 0 April 13th 06 12:40 PM
Populate Userform text boxes in VBA with VLookup data from #2 worksheet Laz[_2_] Excel Programming 4 October 8th 03 02:15 AM


All times are GMT +1. The time now is 02:58 PM.

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

About Us

"It's about Microsoft Excel"