+ Reply to Thread
Results 1 to 6 of 6

Userform Have Text Boxes Auto Populate Based on Combobox Selection

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    houston, Texas
    MS-Off Ver
    2010
    Posts
    28

    Userform Have Text Boxes Auto Populate Based on Combobox Selection

    Good Morning,

    I am trying to have a userform where when you select a vendor the other boxes (contact name, email, and phone) are populated with those items.

    I have set up a dynamic combo box that pulls from a list on a sheet and I want when you select the vendor for the contact stuff which is next to it on the list page to populate the text boxes in the userform.

    But if they do not select a vendor from the list I want them to stay blank so you can enter them in manually.

    Help would be much appreciated this is my first attempt at userforms.

    Thanks!


    StrotherAuto Populate Textbox based on Combo box selection.xlsm

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform Have Text Boxes Auto Populate Based on Combobox Selection

    How many vendors are you expecting?

    Less than 12? your method will work

    More than fifty, your method is a pain.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Userform Have Text Boxes Auto Populate Based on Combobox Selection

    i made some changes....look them over.

    Auto Populate Textbox based on Combo box selection.xls

  4. #4
    Registered User
    Join Date
    06-18-2014
    Location
    houston, Texas
    MS-Off Ver
    2010
    Posts
    28

    Re: Userform Have Text Boxes Auto Populate Based on Combobox Selection

    Wow thank you could you explain why using those public constants is helpful I am still trying to learn VBA, a lot to learn obviously haha

  5. #5
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Userform Have Text Boxes Auto Populate Based on Combobox Selection

    I use the public constants JUST in case something changes, then I only need to change 1 thing. (and not miss others by doing global change)
    But sheets should not change. (but never say never)

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform Have Text Boxes Auto Populate Based on Combobox Selection

    Ok try this

    I have given you two tan boxes

    for test purposes type lab in one of those

    both the test vendors will be listed

    type y into the other box

    only one vendor will be listed

    click on that vendor to populate the userform

    alternatively use the combobox
    Last edited by mehmetcik; 07-02-2015 at 04:36 PM.

+ 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. Replies: 1
    Last Post: 05-30-2015, 12:15 PM
  2. Replies: 4
    Last Post: 03-02-2014, 03:33 AM
  3. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  4. [SOLVED] How to auto populate multiple Text Boxes from list based on value of a cell
    By MooseAUH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 03:40 AM
  5. Populate Text Boxes based on Combo Box Selection
    By Sasha28 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2012, 06:32 PM

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