+ Reply to Thread
Results 1 to 4 of 4

Userform & ComboBox to search a Workbook

  1. #1
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Userform & ComboBox to search a Workbook

    I would like to develop a userform which will have a comboBox (or something like that) which would allow a user to search for an item in a Workbook.

    For example, when I begin typing in a Google search engine a drop down box opens up and attempts to anticipate what I’m trying to type after each letter. So that the more I type the better Google’s guesses are.

    Is there any way to implement something like that in a userform? (Is this possible?)

    Is the ComboBox the right element to use?

    I’m using Excel 2007.

    Steven Craig Miller

  2. #2
    Registered User
    Join Date
    10-08-2009
    Location
    Hull, England
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    73

    Re: Userform & ComboBox to search a Workbook

    This can be done easily, just specify the row source possibly better with a Listbox on your userform.

    How To:

    Build the Userform
    Place the ListBox
    Right click the ListBox and select properties
    Navigate to Source
    And Enter your Range such as Sheet1!A1:A65536

    Then that will fill the listbox with all your data, what the Listbox does from there will require more code and that all depends on what you want to happen.
    Like my post? Considered leaving Rep? Thanks.

  3. #3
    Registered User
    Join Date
    10-08-2009
    Location
    Hull, England
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    73

    Re: Userform & ComboBox to search a Workbook

    My Bad use a Combobox instead of Listbox and in the properties window navigate to List Fill Range, the rest of what i have put is correct.

  4. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Userform & ComboBox to search a Workbook

    Thanks! That helped a lot. Although I found RowSource (rather than Source).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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