ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,726
- Office Version
- 2007
- Platform
- Windows
Hi,
I am using the code at present shown below.
The pasted value is £0.00 & in the address bar i see =SUM(C30:D30) which is from the cell that was copied on the original sheet.
I tried .PasteSpecial but that kicked up the Run time error 13 type mismatch,strange as when i debug it im shown something that isnt to do with the cell in question.
I am using the code at present shown below.
The pasted value is £0.00 & in the address bar i see =SUM(C30:D30) which is from the cell that was copied on the original sheet.
I tried .PasteSpecial but that kicked up the Run time error 13 type mismatch,strange as when i debug it im shown something that isnt to do with the cell in question.
Code:
Private Sub CommandButton2_Click() Dim Answer As Long
Answer = MsgBox("Transfer Values To Summary Sheet ?", vbYesNo + vbInformation, "End Of Month Accounts")
If Answer = vbYes Then
Workbooks("ACCOUNTS").Sheets("INCOME1").Range("E32").Copy _
Destination:=Workbooks("SUMMARY 2018 - 2019").Sheets("Sheet1").Range("E49").PasteSpecial
Workbooks("ACCOUNTS").Sheets("INCOME1").Range("F32").Copy _
Destination:=Workbooks("SUMMARY 2018 - 2019").Sheets("Sheet1").Range("E50").PasteSpecial
ActiveWorkbook.Save
End If
End Sub