+ Reply to Thread
Results 1 to 10 of 10

A user form that shows cells from a row chosen by combo box

  1. #1
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    A user form that shows cells from a row chosen by combo box

    Hi I'm sure this is basic but.. I've got a list of names in column B2 downwards. I need a user form that when I select a name from a combo box populated with names from column B, it will collect data from the rest of that row and display it in text boxes on the user form. I've got a pic to help explain:
    userformPic.jpg

    Any help would be great thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    860

    Re: A user form that shows cells from a row chosen by combo box

    Upload your file instead of a pic.
    Harry.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: A user form that shows cells from a row chosen by combo box

    Use the ComboBox ListIndex property to find the roe number
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: A user form that shows cells from a row chosen by combo box

    Thanks for replying. Could you give an examnple of Listindex please?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: A user form that shows cells from a row chosen by combo box

    Search my previous posts, or upload a workbook instead of a picture

  6. #6
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: A user form that shows cells from a row chosen by combo box

    Hi I will upload a workbook just give me a few to srtip it down a bit thanks

  7. #7
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: A user form that shows cells from a row chosen by combo box

    Ok here's the Workbook.
    Menu2 sheet has the "Indi" button which so far just brings up the "Individual" userform.Tracker2.xls

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: A user form that shows cells from a row chosen by combo box

    You can improve the your code by removing the selections as I have done in the Individuals form. I've added code that does what you asked.

    Also, don't have unnecessary data in your tables, like zzz
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: A user form that shows cells from a row chosen by combo box

    Thanks Roy. Is it also possible that if I change values by typing in the "individual" sheet they will feed back into "Main"?
    I'd like to be able to change the column titles from "individual" userform as well.

  10. #10
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: A user form that shows cells from a row chosen by combo box

    Thanks I got it sorted. By entering text into the text box it updates main anyway. Thanks for you help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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