Results 1 to 10 of 10

Search all worksheets and paste all rows w/search criteria to single sheet

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Search all worksheets and paste all rows w/search criteria to single sheet

    Good day, Gurus.

    I've got a workbook that I use for budgeting. Each month is kept on a new worksheet, and it already has about 50 worksheets. I would like to enter a word into an input box, have Excel search each worksheet for all instances of that word, and copy every row containing that word to the worksheet named "Search"

    I haven't a clue of the best way to do this, and I can't write code, but can read it decently. Here's what I envision:

    Sub Search()
    Dim Ans 
    Ans= inputbox, "What word or phrase are you looking for?"
    For each worksheet in this workbook
    search Ans
    If row contains Ans then
    Copy Row to bottom of "Search" worksheet
    Continue until all worksheets have been searched
    End Sub
    If there is a better, simpler or more reliable way to accomplish my goal, I"m definitely open to suggestions. Thanks in advance for any help you can offer.

    Hutch
    Last edited by hutch@edge.net; 01-22-2012 at 01:31 PM.

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