An alternative, working from your existing code...
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
Sub CopyAlltoSection2_FAVO()
Application.ScreenUpdating = False
Dim RngColA As Range
Dim i As Range
Dim sAdd As String
Dim Dest As Range
With Sheets("Section 2")
Set RngColA = .Range("A1", .Range("A" & Rows.Count).End(xlUp)).Cells
End With
For Each i In RngColA
If i.Value = "Favo" Then
i.Offset(2, 0).Insert shift:=xlDown
Set Dest = i.Offset(2, 0)
Exit For
End If
Next i
Sheets("all").Select
Set RngColA = Sheets("all").Range("A1", Sheets("all").Range("A" & Rows.Count).End(xlUp))
For Each i In RngColA
If i.Value = "Avon" Then
i.Resize(, 11).Copy Dest
Dest.Offset(1, 0).Insert shift:=xlDown
Set Dest = Dest.Offset(1, 0)
End If
Next i
Application.ScreenUpdating = True
End Sub
'-----------
<(E-Mail Removed)> wrote in message
Hi all,
can anybody please help...!?!?!?
I have this code, and i am trying to modify it...
I want to change the line 'Set Dest = Sheets("Section
2").Range("A29")', so that it doesnt insert the copied data from range
A29, but will look for a phrase in Col A i.e. "Avon" and then paste the
copied data 2 row beneath this.... any ideas.. ive spent hours and i
simply cannot get this work...
Also, is there a way to paste the copied data into a New Row - as
opposed to simply copying over the row? i.e the Row beneath the copy
will be shifted down.....
:-((
ANY help will be greatly appreciated...
-snip-