+ Reply to Thread
Results 1 to 3 of 3

Userform Listbox that populates the userform when selected

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Redlands, CA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Smile Userform Listbox that populates the userform when selected

    VBA GODS and GODDESSES:
    I am attempting to learn and understand VBA but I am working on something way out of my league so I am turning to you. I have tried for days to piece together various codes from other users all over the web but can't seem to get this one right.

    I have a Sheet called "Hire Log" which has a table (aptly called "Table1" beginning in A2) which has 76 columns of data. The data is input into various parts of the 76 columns of Table1 from userform "HireLog". I have a listbox in the userform ("ListBoxSearchResults") which displays the first 7 columns of Table1. There is a textbox ("TxtSearchAll") which I would like to use to filter the listbox data in any of the first 4 columns.

    Column A (Last Name), Column B (First Name), Column C (EID Number), Column D (ID Number). I would like to be able to type in either a number or text into the textbox and have it filter the first four columns of data by whatever is input.

    Example:
    If I had the following data stored in "Hire Log" sheet (thus, showing in the Listbox), and I type "tim" into the textbox, it should show both Tim Armstrong's data row and Barry Tim's row. If I type "987" in the textbox, it should filter to show only Joey Cape's data row (EID #) as well as Barry Tim's (ID #) while I type (I guess this means the code would go under the Sub TxtSearchAll_Change() arena?).
    Last Name First Name EID No ID No
    Armstrong Tim 123456 34567
    Cape Joey 987654 75321
    Tim Barry 345698 98745

    Finally, if I double-click on a row of data in the listbox, I would like it to populate all the textboxes throughout the userform.
    If any of you could assist me in ending my misery trying to find a solution to this, I would greatly appreciate it.

    data tab = "Hire Log"
    table on "Hire Log" = "Table1"
    Userform = "HireLog"
    listbox on userform = "ListBoxSearchResults"
    textbox to filter in "ListBoxSearchResults" = "TxtSearchAll"

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Userform Listbox that populates the userform when selected

    where is the file ?


    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    05-28-2010
    Location
    Redlands, CA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Userform Listbox that populates the userform when selected

    H:\Bennie's Projects\Active Type of Junk\Spreadsheet Upgrade Projects\Assistant Hire Log - Individual.xlsm

+ 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. [SOLVED] Add Selected Items From One ListBox to Another ListBox on UserForm
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 06:53 PM
  2. Put a selected row into a listbox in a userform
    By sebastienkanj in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-09-2013, 08:23 AM
  3. VBA - Populate Listbox based on value selected in another ListBox (On Userform)
    By raaboo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2012, 11:18 AM
  4. Populate userform listbox based on value selected in another listbox
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 05:16 PM
  5. Transfer Selected UserForm ListBox Items into a new Row
    By oumomof3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2011, 02:02 PM
  6. Display a UserForm based on Data selected in another UserForm's ListBox
    By RPhilbin83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2011, 11:35 AM
  7. Userform option button starts a loop that searches worksheet and populates listbox
    By silvertyphoon1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2010, 01:58 AM

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