+ Reply to Thread
Results 1 to 7 of 7

how to search unique data in userform listbox?

  1. #1
    Registered User
    Join Date
    10-05-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    13

    how to search unique data in userform listbox?

    hello, i have made a userform where i have placed a textbox, a listbox and a command button. my data has duplicates too. how can i search something i typed in textbox which would be a name or contact no or email address and it should show in listbox with all columns in a row without duplicates? can someone help me?

    i have uploaded a excel file too.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: how to search unique data in userform listbox?

    Not sure about your definition of "unique" though.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-05-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    13

    Re: how to search unique data in userform listbox?

    It's actually working with your code. i am able to search data without duplicates. thanks a lot. just want to ask you can we search some specific columns with this code like if we want to search data from range b2: h then what should we do? its for just knowledge.

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

    Re: how to search unique data in userform listbox?

    You can use multiple text boxes to narrow down your search


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-04-2017 at 08:03 PM.
    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.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: how to search unique data in userform listbox?

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-05-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    13

    Re: how to search unique data in userform listbox?

    i will upvote you and i admire your given time to my question but unfortunatly my excel got crashed when i input something on your 2nd textbox and 3rd textbox.am i doing something wrong?

  7. #7
    Registered User
    Join Date
    10-05-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    13

    Re: how to search unique data in userform listbox?

    respected jindon sir, in both cases your code is doing great job, i will follow your other posted replies too learn more. i know you guys got nothing but you guys help and solve others problem and its really helpful for everyone.

+ 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. Search and display unique data in listbox by vba
    By relief12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2017, 08:35 AM
  2. Want to one more textbox to search the data in listbox (Userform)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2017, 08:00 AM
  3. Userform to Search based on Unique ID update and save data in an exel sheet
    By Rosco90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 04:50 PM
  4. Userform Search ListBox
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 06:02 AM
  5. Transfer Data From One Userform Listbox to Another Userform Listbox with 11 columns
    By sparkoft in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2013, 10:54 AM
  6. 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
  7. Userform repeat all data to next row except unique field from listbox
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2012, 11:26 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