+ Reply to Thread
Results 1 to 2 of 2

Updating Text Box with Cell Values based on ComboBox Selection

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Updating Text Box with Cell Values based on ComboBox Selection

    Almost embarrassed to ask for help on this but ive looked everywhere with no luck or understanding. Im simply trying to create a user form from my spreadsheet. Complete noob. I want my text boxes to populate with the cell values in the same row as the value selected with a combobox. Ive attached a screen shot that will hopefully make sense of what im trying to accomplish. As always, thank you in advance for any help you can offer. This site has been invaluable to me over the years.ComboBox.JPG

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Updating Text Box with Cell Values based on ComboBox Selection

    Hi Huskersippi,

    Below is the code that is assigned to the Userform. The first sub is the code that updates the 3 listboxes for each range you described when the value of the combobox changes. The second part is the Initialization for the form that populates the combobox when the Userform is first run. I used a combobox for the values in Column A and Listboxes to provide for the results.

    Please Login or Register  to view this content.
    I have also attached the Userform.xlsm file which has the userform with the above code in it as an example.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  2. [SOLVED] Textbox - populate with month name and values based on Combobox selection
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2015, 08:09 AM
  3. Excel VBA - Hide cell values based on ComboBox selection
    By jpergega in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2015, 12:54 PM
  4. Calculating/adding userform textbox values based on combobox selection and display to cell
    By SpreadsheetGirl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 08:57 AM
  5. [SOLVED] code for updating rows based on a userform combobox selection
    By raluk_ro22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2013, 11:09 AM
  6. Breakdown Cells with values seperated by ; to row based on combobox selection
    By dooz1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2013, 04:44 PM
  7. [SOLVED] Based on userform combobox selection find text on worksheet
    By afpPaul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2012, 08:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1