+ Reply to Thread
Results 1 to 10 of 10

create a find box in excel vba

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Question create a find box in excel vba

    hi, i can't seem to figure out how to make a search/find box that will select the text the user inputs.

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: create a find box in excel vba

    Here is a user form search system. If you need help creating it yourself let me know!
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: create a find box in excel vba

    You can also hit CTRL + F though

  4. #4
    Registered User
    Join Date
    05-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: create a find box in excel vba

    Thank you GaidenFocus! The search box is great! Just one thing: The userform closes everytime I type in something and hit the OK button. How could you make it stay open unless Cancel is hit? That way you wouldn't have to open it everytime you want to find something.
    Thanks again!

  5. #5
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: create a find box in excel vba

    Here you go, let me know if it doesn't work!
    Attached Files Attached Files
    Last edited by GaidenFocus; 06-29-2012 at 03:47 PM.

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: create a find box in excel vba

    Thanks again. I did run into one other problem. I erased your values in column A and wrote some other values in other cells and ran the search, it won't find any other values unless they are in cell A1. For example, if the word "tax" is in F5, and I search for "tax", it displays Not Found. If "tax" is written in A1, it does find it.

  7. #7
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: create a find box in excel vba

    OK here is a simpler version.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: create a find box in excel vba

    It works. Thanks for your help.

  9. #9
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: create a find box in excel vba

    No problem! Glad i could help.

  10. #10
    Registered User
    Join Date
    02-06-2013
    Location
    vilnius, lithuania
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: create a find box in excel vba

    Quote Originally Posted by GaidenFocus View Post
    OK here is a simpler version.
    could u give me the same file just in xls format, thanx a lot.

+ 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