+ Reply to Thread
Results 1 to 8 of 8

Search and return all results across all worksheets problem.

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    4

    Search and return all results across all worksheets problem.

    I'm sure this is said a lot on here but here goes, I'm still fairly new to excell, now that is out of the way...

    I have been working on a spreadsheet to list prices of products that my company regular purchases, this info is used to price refurbishment work. The spreadsheet now contains too much data to easily find what someone is looking for, so I am trying to implement a search page with a simple search button to prompt the user to input text for what they are searching for and to return all results found in a table underneath, then to clear results afterwords. I have attached an example wokbook with a few short explanations inside it. Help with the code would be most appreciated.

    Luke.

    Example1.xlsx

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Search and return all results across all worksheets problem.

    Hello, and welcome to the forum.

    Is something like this what you're looking for?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Search and return all results across all worksheets problem.

    Thank you, this works exactly how i wanted it to with one exception, it does not clear all cells after a new search has been started, it leaves data in cells a2:e10.

    Any thoughts?

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Search and return all results across all worksheets problem.

    It shouldn't be writing anything to cells A2:E10, they were blank on your original example, so I wrote the data in cells A11 onwards.

    Perhaps you could upload an updated book showing the problem

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Search and return all results across all worksheets problem.

    I have now resolved the problem. Is it possible for the results to display the comments box which is attached to the result? For example i have attached a comment to cell B3 on the second sheet, when the results are displayed it does not copy over the attached comment.

    I have attached a new example.

    Example2.xlsm
    Last edited by richcase; 01-31-2013 at 12:10 PM.

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Search and return all results across all worksheets problem.

    Not a problem.

    Change the line of code:

    Please Login or Register  to view this content.
    To:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-22-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Search and return all results across all worksheets problem.

    Many thanks for your help most appreciated.

    Once the search has been performed and then cleared, the comment then stays attached to the cell.

    If you search "ply 18mm" for example then press the search button and canel it the comment then stays. Any way of clearing this once the search has been performed?

  8. #8
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Search and return all results across all worksheets problem.

    OK, remove the line near the start that says:

    Please Login or Register  to view this content.
    And replace it with:

    Please Login or Register  to view this content.

+ 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