+ Reply to Thread
Results 1 to 8 of 8

Partial search in combobox with name range

  1. #1
    Registered User
    Join Date
    12-26-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    69

    Partial search in combobox with name range

    Hi everyone,

    I have a combobox with ship names, added through the AddItem function.
    Currently I have to type the exact match in the combobox to get to the ship name I am looking for.
    Is there a way just to type a part of the ship name and it will show the ship name?
    Example:
    Ship name is King Admiral III, I enter Admiral in the combobox, King Admiral III will come up.
    Thanks for your help.
    Last edited by frankytheman; 01-21-2020 at 11:03 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need vba code: Partial search in combobox with name range

    Hello frankytheman,

    When doing a partial match there will be instances with multiple matches are found. How do you plan to deal with those?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-26-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    69

    Re: Partial search in combobox with name range

    I am not sure yet, I would need to see it first.
    Last edited by frankytheman; 01-21-2020 at 11:05 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    995

    Re: Need vba code: Partial search in combobox with name range

    1. Are you talking about combobox in a sheet or in a userform?
    2. Can you show us your code?
    I have a combobox with ship names, added through the AddItem function.
    3. Can you attach your file? Please read the yellow banner at the top of the thread.

  5. #5
    Registered User
    Join Date
    12-26-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    69

    Re: Partial search in combobox with name range

    Hi Akuini,

    1. Are you talking about combobox in a sheet or in a userform?
    UserForm

    2. Can you show us your code?
    Please Login or Register  to view this content.
    3. Can you attach your file? Please read the yellow banner at the top of the thread.
    File attached.

    Thank you for checking it.
    Attached Files Attached Files
    Last edited by frankytheman; 01-21-2020 at 11:05 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    995

    Re: Need vba code: Partial search in combobox with name range

    Try this:
    You need to put the list for the combobox in a sheet.
    You can use one keyword or 2 or more keywords separated by a space, like: ha ca
    The list will be narrowed as you type
    Use down/up arrow to navigate
    Hit enter to select
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-26-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    69

    Re: Partial search in combobox with name range

    Hello Akuini, this is amazing!!! It's exactly how I want it. Thank you so much. You are a star.
    Last edited by frankytheman; 01-21-2020 at 11:06 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    995

    Re: Need vba code: Partial search in combobox with name range

    You're welcome, glad to help, & thanks for the feedback.
    And thanks for "Add Reputation"

+ 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] Combobox with search initial letter code
    By Berna11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2018, 01:09 PM
  2. VBA Code for Partial Search Excel Listbox with Textbox Change
    By mahmudayaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2017, 06:14 AM
  3. Replies: 3
    Last Post: 01-22-2015, 06:21 PM
  4. Replies: 2
    Last Post: 02-06-2014, 09:52 AM
  5. [SOLVED] need to do Partial name search and return the value against the partial name
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2013, 09:40 AM
  6. [SOLVED] VBA code to search using userform with multiple combobox's
    By goffa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2013, 07:43 AM
  7. [SOLVED] PARTIAL TEXT Search from range of cells.
    By manharji in forum Excel General
    Replies: 1
    Last Post: 04-07-2012, 08:19 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