Results 1 to 6 of 6

Need a Macro to search for text in sheet and copy the matching row to new sheet

Threaded View

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question Need a Macro to search for text in sheet and copy the matching row to new sheet

    Hi I am New to Excel macro scripting . I need your help to find do a task in excel which i am struggling till now .

    I have excel in which sheet1 & sheet2 contents are as attached in excel

    I want to script which reads the first column of sheet2 until the end of empty cell and then find each cell value against sheet1 and print all rows which has the value of cell to sheet3 . so as per the excel sheet attached say sheet2.A1=luke .I have to find for luke in sheet1 ,Now I find 2nd row and 3rd row has contents of luke and script has to copy the entire matched rows contents to sheet3 . next it has to take sheet2.A2 value "nick" and do the same find operation in sheet and copy the matched row1 and append it sheet3 contents.

    Thanks in Advance.

    Regards
    Rob
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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