+ Reply to Thread
Results 1 to 9 of 9

Find string in column and paste corresponding row into other sheet

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Question Find string in column and paste corresponding row into other sheet

    solveddddd
    Last edited by cronerd; 08-29-2013 at 04:04 PM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Find string in column and paste corresponding row into other sheet

    Would this work for you (try it on a copy of your workbook)

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: Find string in column and paste corresponding row into other sheet

    try this, little change of your code...

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: Find string in column and paste corresponding row into other sheet

    Jolivanes has nice code working perfectly , try it...ignore mine has some errors.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find string in column and paste corresponding row into other sheet

    Untested

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Find string in column and paste corresponding row into other sheet

    Jolivanes that worked for me.
    Last edited by cronerd; 08-29-2013 at 04:05 PM.

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Find string in column and paste corresponding row into other sheet

    I don't know. Will this do?

    Please Login or Register  to view this content.
    Maybe a slight change in AB33's code will be better.

  8. #8
    Registered User
    Join Date
    08-27-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Find string in column and paste corresponding row into other sheet

    Untested...

    Option Explicit

    Sub CopyRowToAnotherSheet()
    Dim strFind As String
    Dim NextRow As Long
    Dim rngFound As Range
    Dim wsSource As Worksheet
    Dim wsResult As Worksheet
    Dim CL as Variant

    'Reset Result sheet
    Sheets("Parts").Rows("2:" & Rows.Count).ClearContents
    Application.ScreenUpdating = False

    'Main Code

    Set wsSource = Sheets("SourceData")
    Set wsResult = Sheets("Parts")
    Set rngFound = wsSource.Range("A1:A15000")

    NextRow = wsResult.Range("A" & Rows.Count).End(xlUp).Row
    strFind = "11-11-222"
    For each CL in RngFound
    If instr(CL.Value, "|" & SrtFind) > 0 then
    NextRow = NextRow + 1
    rngFound.EntireRow.Copy wsResult.Range("A" & NextRow)
    end if
    Next CL
    End Sub
    Last edited by briguin; 08-27-2013 at 11:12 PM.

  9. #9
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Find string in column and paste corresponding row into other sheet

    Or maybe like this.

    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)

Similar Threads

  1. [SOLVED] find value in column A, paste corresponding Column B value to another sheet.
    By A1212 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2012, 07:06 PM
  2. [SOLVED] find last value in column and copy then paste to another sheet
    By AZZ70 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-23-2012, 10:12 AM
  3. Find text in column, copy next row and paste in new sheet
    By MikeTiplady in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2009, 04:26 PM
  4. how to find Certain String in a column, select/Copy the cell till another String
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2009, 10:59 AM
  5. Replies: 8
    Last Post: 03-14-2006, 11:13 AM

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