ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Hi,
I run the code below.
The sheet that the code is pasted to has a formula in cell E4
The formula is,
This formula is lost upon paste.
I run the code below.
Code:
Private Sub CommandButton1_Click()Sheets("INCOME1").Range("C30:F30").Copy
Sheets("INCOME2").Range("C4:F4").PasteSpecial Paste:=xlPasteValues
Sheets("INCOME2").Activate
ActiveSheet.Range("A5").Select
Sheets("INCOME1").Activate
ActiveSheet.Range("H32").Select
ActiveWorkbook.Save
End Sub
The sheet that the code is pasted to has a formula in cell E4
The formula is,
Code:
=IF(C4="","",C4+D4)
This formula is lost upon paste.