Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone know how I can programatically copy the 1st 3 columns and the 5th
column of the current row my cursor is on to the next available blank row in the same worksheet? Thank you, Sarah |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim rng as Range
set rng = cells(activecell.row,1).Range("A1:C1,E1") rng.copy Cells(rows.count,1).End(xlup)(2) that will put the copies in column A:D. If you want to keep them in the same columns Dim lastrow as Long lastrow = cells(rows.count,1).End(xlup)(2).row cells(Activecell.Row,1).Resize(1,3).copy cells(lastrow,1) cells(activecell.row,5).copy cells(lastrow,5) -- Regards, Tom Ogilvy "Sarah" wrote: Does anyone know how I can programatically copy the 1st 3 columns and the 5th column of the current row my cursor is on to the next available blank row in the same worksheet? Thank you, Sarah |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Tom... you're a genius!
Sarah "Tom Ogilvy" wrote: Dim rng as Range set rng = cells(activecell.row,1).Range("A1:C1,E1") rng.copy Cells(rows.count,1).End(xlup)(2) that will put the copies in column A:D. If you want to keep them in the same columns Dim lastrow as Long lastrow = cells(rows.count,1).End(xlup)(2).row cells(Activecell.Row,1).Resize(1,3).copy cells(lastrow,1) cells(activecell.row,5).copy cells(lastrow,5) -- Regards, Tom Ogilvy "Sarah" wrote: Does anyone know how I can programatically copy the 1st 3 columns and the 5th column of the current row my cursor is on to the next available blank row in the same worksheet? Thank you, Sarah |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy, next blank row? | Excel Worksheet Functions | |||
Copy to first Blank cell in Colum C Non blank cells still exist be | Excel Programming | |||
Copy to next blank row | Excel Programming | |||
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. | Excel Discussion (Misc queries) | |||
Copy Until Blank | Excel Programming |