Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro
hello, I would like to know if it is possible to create a macro to select
the LAST WRITTEN row of a worksheet and then paste it at the end of another sheet thanks for any help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro
Sub MoveIt()
Dim srcRng As Range Dim destRng As Range Set srcRng = Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).EntireRow Set destRng = Worksheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) srcRng.Copy destRng End Sub Warning: fails if column A in either Sheet1 or Sheet2 is empty HTH -- AP "antonov" a écrit dans le message de .. . hello, I would like to know if it is possible to create a macro to select the LAST WRITTEN row of a worksheet and then paste it at the end of another sheet thanks for any help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |