+ Reply to Thread
Results 1 to 2 of 2

Macro to search all sheets for text or numbers

  1. #1
    Registered User
    Join Date
    05-10-2010
    Location
    Kalamazoo, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro to search all sheets for text or numbers

    Basically, in my head I am envisioning a search button next to a text box (similiar to what you would see on any search engine). I would like the user to be able to type whatever they are looking for in the text box, then by clicking the search button the macro would search all sheets to find any form of a match. Since I'm assuming there will be multiple matches, I need a function that will allow the user to see the results and choose which one theyre truly looking for. I have no idea how I would go about this. Also, I need the user to be able to search for text, numbers, or both. I have very basic knowledge of VBA and am having trouble making it happen. Any help or suggestions would be awesome!

    I tried to contact google for some code, but I never got a response.

    Thanks,
    Chris

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Macro to search all sheets for text or numbers

    All of this functionality is already in place in the existing Find function.

    Simply click the "Options" button in the Find dialog box. You will see an option stating "Within" and then a drop-down. By default "Sheet" is selected, but you can choose "Workbook". Then select "Find All" and it will list all results as rows in the dialog box.

+ 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