solveddddd
solveddddd
Last edited by cronerd; 08-29-2013 at 04:04 PM.
Would this work for you (try it on a copy of your workbook)
![]()
Please Login or Register to view this content.
try this, little change of your code...
![]()
Please Login or Register to view this content.
Jolivanes has nice code working perfectly , try it...ignore mine has some errors.
Untested
![]()
Please Login or Register to view this content.
Jolivanes that worked for me.
Last edited by cronerd; 08-29-2013 at 04:05 PM.
I don't know. Will this do?
Maybe a slight change in AB33's code will be better.![]()
Please Login or Register to view this content.
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 thenNext CL
NextRow = NextRow + 1end if
rngFound.EntireRow.Copy wsResult.Range("A" & NextRow)
End Sub
Last edited by briguin; 08-27-2013 at 11:12 PM.
Or maybe like this.
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks