Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All,
I am starting to write a VBa code in order to copy 4 cells on the same line in another sheet in order to keep the history. Right now, the present code below just overwrite the previous data everytime I run it. I would like to be able to have Excel copy on the next available empty line below the previous one. How should I change my code? Sub CopyandPaste() Dim CopyRange As Range Set CopyRange = Range("B5:D5") CopyRange.Copy Destination:=Worksheets("Hist").Range("B7:D7") End Sub Thanks for your help. Etienne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro - Copy/Paste Special to Next Blank Line | New Users to Excel | |||
Line copy - Not just a simple copy paste | Excel Worksheet Functions | |||
IN EXCEL...I CANNOT COPY THE TOTAL LINE AND PASTE IT ...I GET REF. | Excel Worksheet Functions | |||
macro to copy paste non empty data | Excel Programming | |||
Macro to Copy/Paste then Paste to Next Line | Excel Programming |