Macro Help - Copy Selected Row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Sub TeddyB()
Selection.Copy Sheets("Sheet2").Range("A50")
End Sub

assuming you have select the entire row, it is a one-liner.
 
Sub foo()
Selection.EntireRow.Copy _
Destination:=Sheets("Sheet2").Rows(50)
End Sub
 
One more...

Activecell.entirerow.copy _
destination:=worksheets("OtherSheetNameHere").range("A50")

Selection could be more than one row.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top