Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help - Copy Selected Row
Help_ I need to write a macro that will copy any single row that is
highlighted and paste it to a designated row on a different worksheet Ex.~(Row50). I am reassembling a form based upon archived data in the row being copied. Please help! ~Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help - Copy Selected Row
Sub TeddyB()
Selection.Copy Sheets("Sheet2").Range("A50") End Sub assuming you have select the entire row, it is a one-liner. -- Gary''s Student - gsnu200750 "Teddy-B" wrote: Help_ I need to write a macro that will copy any single row that is highlighted and paste it to a designated row on a different worksheet Ex.~(Row50). I am reassembling a form based upon archived data in the row being copied. Please help! ~Thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help - Copy Selected Row
Sub foo()
Selection.EntireRow.Copy _ Destination:=Sheets("Sheet2").Rows(50) End Sub Teddy-B wrote: Help_ I need to write a macro that will copy any single row that is highlighted and paste it to a designated row on a different worksheet Ex.~(Row50). I am reassembling a form based upon archived data in the row being copied. Please help! ~Thanks |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help - Copy Selected Row
One more...
Activecell.entirerow.copy _ destination:=worksheets("OtherSheetNameHere").rang e("A50") Selection could be more than one row. Teddy-B wrote: Help_ I need to write a macro that will copy any single row that is highlighted and paste it to a designated row on a different worksheet Ex.~(Row50). I am reassembling a form based upon archived data in the row being copied. Please help! ~Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel: if selected, copy cell from corresponding row | Excel Worksheet Functions | |||
Copy a selected number of rows | Excel Discussion (Misc queries) | |||
Copy selected lines | Excel Worksheet Functions | |||
Macro, Copy Selected Cells Down a Column | Excel Discussion (Misc queries) | |||
Copy Selected cells down a row with macro | Excel Discussion (Misc queries) |