+ Reply to Thread
Results 1 to 3 of 3

search that copies all matching rows to different work sheet.

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    74

    search that copies all matching rows to different work sheet.

    I am new to VBA and cannot seem to find out how to create a code that will allow me to search for a specific term in one worksheet, that will copy all matching rows to another worksheet. Any suggestions?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: search that copies all matching rows to different work sheet.

    gherzberg,

    Welcome to the forum!
    Give this macro a try, here's what you'll need to adjust:
    Change the strColSearch to the column that you'll be looking in
    Change wsData to the sheet containing the data where you'll be searching
    change wsDest to the sheet that the found information will be pasted to
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Utah
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: search that copies all matching rows to different work sheet.

    thanks is there a way to add a text box at the top of the destination sheet rather than the user box prompt

+ 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