Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: Copy entire row 1571, pastespecial/formulas to current row

Status
Not open for further replies.

Softedge88

Technical User
Jan 6, 2009
2
CA
How do I copy the contents of the entire row 1571 in an excel spreadsheet and pastespecial / formulas to the current row? I would like to assign this macro to a button ( I know how to do this).

I have tried using the macro recorder but seems to only allow me to paste to the row selected at the time of recording. I would like to place the cursor on a row and then have the macro copy the contents of the entire 1571 row and paste them to the selected row.

Merged cells in some columns cross the current row.

Regards,
Arthur

 
What about this ?
Code:
Rows(1571).EntireRow.Copy
Rows(ActiveCell.Row).EntireRow.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
    SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top