Consulting

Results 1 to 5 of 5

Thread: Solved: Search Form Help

  1. #1
    VBAX Regular
    Joined
    May 2008
    Posts
    26
    Location

    Solved: Search Form Help

    I'm need to make a form with 1 button and 2 text boxes. I'm looking for the form to do a search when i click button1 on a range D2 to D2805 for the value I put in TextBox1. and i need it to output the value from columnA in the same row it finds the value from textbox1 in Textbox2. does this make any sense? I have had very little luck doing this as im very new to VBA. any help would be great.

    thanks
    Last edited by KennyJ; 05-23-2008 at 06:36 AM.

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Kenny, I just had a minute to look at your question but I have attached an example that will get you started. It has a listbox which will list all entries in column D and a search textbox that will allow you to start typing and will return the results in textbox 2 marked results.....hope this helps.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Regular
    Joined
    May 2008
    Posts
    26
    Location
    Works Perfect Thank You!

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Glad to help. Be sure to mark your thread solved using the thread tools at the top of the page.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    VBAX Regular
    Joined
    May 2008
    Posts
    26
    Location
    would it be hard to edit this to search an open but inactive workbook?

Posting Permissions

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