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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Active Row to Another Sheet and Paste Cell Values

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
Hi am using the following code to copy the active row from one sheet to another.
Code:
ActiveCell.EntireRow.Copy Destination:=Sheets("Archive").Range("A" & Rows.Count).End(xlUp).Offset(1)
    MsgBox "Row has been archived", vbInformation, "Data Archived"

This works fine but it still copies the formulas. How can I ensure it copies only cell values?

Thanks
 
hi,
Code:
ActiveCell.EntireRow.Copy 

Sheets("Archive").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValues

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top