+ Reply to Thread
Results 1 to 5 of 5

Look up a specific record in Data File and display in UserForm ListBox

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Look up a specific record in Data File and display in UserForm ListBox

    Sometimes, I bite off more than I can chew and this is one of those times.
    I have an Issue Log where I keep incoming calls recorded. When a store calls in I wanted to be able to look at all the "logged calls" for that store. I found the code below that helps in doing some of that. Once I have selected the store number in the ComboBox and execute through the CommandButton the ListBox fills out.
    The drawback is this only gives me a single line item, and invariably there's more than just one issue in the logbook for a particular store.
    How can I change this up a little more to enable it to find multiple records?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Look up a specific record in Data File and display in UserForm ListBox

    Hello
    I have often used the Advanced filter to get the data then fill the list box from that but without seeing some sample data it's difficult to give an example. If you could upload a non-sensitive sample file it would help the forum members to assist.

    DBY

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: Look up a specific record in Data File and display in UserForm ListBox

    Lowe's Shed Hotline Logs for ExcelForum.xlsmDBY should have known better than to send without the attachment... thanks for the reminder.

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Look up a specific record in Data File and display in UserForm ListBox

    See the attached amended file. It uses an advanced filter to filter the selected Store No. and creates a dynamic named range which becomes the List Box row source. On the Data Sheet the code uses Current Region to look for the data if you add new lines but you need to keep empty space around the data table to use this.

    DBY
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: Look up a specific record in Data File and display in UserForm ListBox

    DBY... worked like a charm! Thanks a lot!

+ 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] ListBox in a Userform to load data from external XML file
    By powerplug in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-22-2015, 01:56 PM
  2. listbox click to locate and display worksheet data in userform
    By ilmiawan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2014, 08:28 PM
  3. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  4. Delete record from listbox via Userform
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-19-2011, 03:31 AM
  5. 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
  6. Problem displaying single record in userform listbox from recordset
    By carpking in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-24-2009, 03:24 AM
  7. Display last record in Userform
    By vba-lover in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2007, 11:11 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