Consulting

Results 1 to 4 of 4

Thread: Search function using VBA

  1. #1

    Search function using VBA

    Hi All,
    Hoping you can help I've been searching and searching for the right VBA code for the job but so far haven't found anything. I have limited working knowledge of macros and love using them as it makes my life much easier but as of yet havn't worked out how to write them myself, hence why i need your help.
    I have a workbook with around 5 sheets with two columns each. Column A - Name of Test Type and Column B - Definition of Test Type and i want create a search function on the first sheet where i can type in a search criteria in a certain cell e.g. "Test Automation" and press the search button and it will search all the sheets and will give me the definition of this test type.
    Thanks in advance!

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    Little too much code in various places to post, but look at this example

    MIght give you some ideas
    Attached Files Attached Files
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Thank you for the quick response. This really helps.

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    Quote Originally Posted by itsraghus View Post
    Thank you for the quick response. This really helps.
    You've still got your work cut out for you

    Build the sheets, make the UserForm prettier, maybe Hide the Test/Definition sheets from the user, maybe make the 'Into' sheet prettier and add some instructions

    Ask again if there are any questions
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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