ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,726
- Office Version
- 2007
- Platform
- Windows
Hi,
I am using the code below but not getting a true copy / paste value etc.
The worksheet called MILEAGE at cell C32 has the formula =DOLLAR(D31*0.45) & currently shows £1.80
When i press the button the £1.80 is copied to cell reference E58 on the SUMMARY sheet but there is a mark in the cells top left corner.
The calculation then on the SUMMARY sheet is incorrect because of this mark or the way it was copied over even though paste special is used.
I mean if i delete the £1.80 from cell E58 & then manually type it in the calculation on the sheet is correct and no mark in the top left of cell.
If i then delete the £1.80 value in the cell & go back to the sheet MILEAGE & press the button the £1.80 is then put back into the cell E58,the mark is shown again & the calculation is wrong.
I am using the code below but not getting a true copy / paste value etc.
The worksheet called MILEAGE at cell C32 has the formula =DOLLAR(D31*0.45) & currently shows £1.80
When i press the button the £1.80 is copied to cell reference E58 on the SUMMARY sheet but there is a mark in the cells top left corner.
The calculation then on the SUMMARY sheet is incorrect because of this mark or the way it was copied over even though paste special is used.
I mean if i delete the £1.80 from cell E58 & then manually type it in the calculation on the sheet is correct and no mark in the top left of cell.
If i then delete the £1.80 value in the cell & go back to the sheet MILEAGE & press the button the £1.80 is then put back into the cell E58,the mark is shown again & the calculation is wrong.
Code:
Private Sub CommandButton1_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("MILEAGE").Range("C32").Copy
Workbooks("SUMMARY 2018 - 2019").Sheets("Sheet1").Range("E58").PasteSpecial xlPasteValues
ActiveWorkbook.Save
End If
End Sub