LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default copy, paste into a 'found' row on another sheet problem......

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...

'** this copies all those with FAVO in col A to sheet Section2

Sub CopyAlltoSection2_FAVO()

Application.ScreenUpdating = False

Dim RngColA As Range

Dim i As Range
Dim sAdd As String
Dim Dest As Range

Sheets("all").Select
Range("A1").Select

Set RngColA = Range("A1", Range("A" & Rows.Count).End(xlUp))

Set Dest = Sheets("Section 2").Range("A29")


For Each i In RngColA

If i.Value = "FAVO" Then

i.Resize(, 11).Copy Dest

Set Dest = Dest.Offset(1)
End If

Next i

Application.ScreenUpdating = True

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy from one Sheet and paste on another sheet based on condition Prem Excel Discussion (Misc queries) 2 December 24th 07 05:05 AM
Active Cell Copy And Paste Sheet to Sheet A.R.J Allan Jefferys New Users to Excel 4 May 4th 06 02:04 AM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
automatic copy and paste from sheet to sheet in a workbook ramseyjramseyj Excel Programming 6 December 11th 04 12:37 AM
If found, then copy and paste contents, otherwise move on Dave Peterson[_3_] Excel Programming 0 September 11th 04 12:53 AM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"