Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Further to my previous post I am again stucked with a command. With the below statement I want to copy certain lines to a different sheet, but as I have to use this statement a couple of times. Therefore I would like to be flexible in choosing the cell to which I would like to copy the selected lines. In the current statement all results are copied to column G so in case of multiple selections the system will overwrite the date in cell G1. Can anyone advice how to adjust this statement in order to get all values past starting in cell G20? Hope it makes sense;-) Thanks very much!! Rgds, robert 'Subtract: RNFH, PRIVATE LOANS (i=b) Dim bLastRow As Long, bNextRow As Long Dim b As Long With Worksheets("Cut-Out") bLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For b = 1 To bLastRow If .Cells(b, "A").Value = "RNFH" Then bNextRow = bNextRow + 1 .Cells(b, "A").Resize(, 28).Copy _ Worksheets("BarraFormat").Cells(aNextRow, "G") End If Next b End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy and paste versus copy and insert copied cells | New Users to Excel | |||
Copy/Paste how to avoid the copy of formula cells w/o calc values | Excel Discussion (Misc queries) | |||
copy formulas from a contiguous range to a safe place and copy them back later | Excel Programming | |||
EXCEL FILE a copy/a copy/a copy ....filename | New Users to Excel | |||
Code to copy range vs Copy Entire Worksheet - can't figure it out | Excel Programming |