+ Reply to Thread
Results 1 to 7 of 7

Userform search engine depended combobox

  1. #1
    Registered User
    Join Date
    03-09-2016
    Location
    Rotterdam
    MS-Off Ver
    2016
    Posts
    28

    Userform search engine depended combobox

    Hi Guys,

    Im working on a excel file for more than a week now and I still can't find a solution for my problem.
    I've got a sheet named ''Data" with the following information: column A: object, Column B: code, Column C:F product information.

    I want to create an userform with a search engine:
    1: An user can search on the code or object name (ComboBox1_choice);
    2: After that ComboBox_depended will show: the object names or codes (some users only know the codes other users only know the object), the user can typ in the right code or object;
    3: ListBox_results will show the object name, code, objectinformation (C:F)
    4: a button to send the object name to sheet 2 cell a2. (the selected item (only the object name) in the listbox will be send to sheet a2)

    is this possible??

    I've made an excel helpfile. The userform and combobox1_choice has been made already.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: Userform search engine depended combobox

    This should do the trick
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-09-2016
    Location
    Rotterdam
    MS-Off Ver
    2016
    Posts
    28

    Re: Userform search engine depended combobox

    Beautiful! It works perfect!!! Thank you for your work

    One last question: is it possible that the first item that appears in the listbox will be automatically selected?

  4. #4
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: Userform search engine depended combobox

    Glad if i can help

    And sure that is possible just do this.

    in the Inititialize part add the green code part

    Please Login or Register  to view this content.
    in the choice change part add the same for the dependent box

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-09-2016
    Location
    Rotterdam
    MS-Off Ver
    2016
    Posts
    28

    Re: Userform search engine depended combobox

    Hi,

    It seems like it doesn't do the trick. The first option in the listbox_results isn't selected. Should the green part be: me.ListBox_results.ListIndex = 0 ?

  6. #6
    Forum Contributor
    Join Date
    04-20-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    312

    Re: Userform search engine depended combobox

    ah you want the result in the listbox to be selected :D
    I thought you wanted that the firest result in each combobox gets selected :D

    in this case just add this also

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-09-2016
    Location
    Rotterdam
    MS-Off Ver
    2016
    Posts
    28

    Re: Userform search engine depended combobox

    many many thanks it works

+ 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. VBA Filter combobox on userform with search suggestions
    By MarcelCleijsen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2016, 02:36 PM
  2. Simple "SEARCH ENGINE" in a userform, from data across multiple sheets
    By daisiroi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2016, 07:53 AM
  3. [SOLVED] how to make activecell be populated by userform depended on which combobox has a value in
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2013, 05:56 AM
  4. using userform textbox to search instead of combobox
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2013, 02:06 PM
  5. combobox and textbox search engine
    By darkhangelsk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2013, 07:16 AM
  6. combobox and listbox search engine
    By darkhangelsk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2013, 09:47 AM
  7. Userform & ComboBox to search a Workbook
    By StevenM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2012, 03:01 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