Consulting

Results 1 to 4 of 4

Thread: Search workbook as you type

  1. #1
    VBAX Contributor
    Joined
    Feb 2009
    Posts
    103
    Location

    Question Search workbook as you type

    hi guys, is it possible to achieve in VBA to have a small textbox in a form, in which user will type something and it will search the workbook while the user is typing.

    If possible, appreciate if can give an idea on how to start.

    Thanks in advance.

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    What do you mean "search" while typing?
    Search for what and do what if it is found?
    Are there particular sheets or ranges that should be searched?

  3. #3
    VBAX Contributor
    Joined
    Feb 2009
    Posts
    103
    Location
    hi mikerickson, what i'm planning is to have a textbox in which user can type.

    Then while typing it will search or will try to find for exact match that the user is typing on the textbox for any values on the entire workbook.

    If found a match it will highlight the particular value.

    Search for what and do what if it is found?
    - Search for a value that is being type on the textbox.
    - If found highlight the said value.

    Are there particular sheets or ranges that should be searched?
    - All sheets.

    Actually, there's a built-in function of excel to find or search for a particular value on the entire workbook.
    and if there are multiple results, it will display which worksheet and which particular row and column. But for this you have to click "Find Now" for the results to view.

    but what i want is like an interactive search, while the user is typing for a particular value then excel will search as well for any exact match.

    Thanks for your reply.

  4. #4
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    There is seldom any advantage to duplicating Excel's built in funcitonality.
    What do you have so far in the way of a userform and code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •