ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 6,002
- Office Version
- 2024
- Platform
- Windows
Evening,
I am using the working code supplied below.
I would like to add some kind of check value code after the supplied code below has run.
So in this particular code, values are copied from sheet name EXPENSES1 & pasted to sheet name EXPENSES2
This would be the additional code required please.
Once pasted to sheet EXPENSES2 the code would need to make sure that the value in cell K32 on EXPENSES2 is the same value as cell M1 on sheet EXPENSES1
If the value is the same then show msgbox with the text Values are the same.
If the values are different then msgbox with the text value do not match
Many Thanks
I am using the working code supplied below.
I would like to add some kind of check value code after the supplied code below has run.
So in this particular code, values are copied from sheet name EXPENSES1 & pasted to sheet name EXPENSES2
This would be the additional code required please.
Once pasted to sheet EXPENSES2 the code would need to make sure that the value in cell K32 on EXPENSES2 is the same value as cell M1 on sheet EXPENSES1
If the value is the same then show msgbox with the text Values are the same.
If the values are different then msgbox with the text value do not match
Code:
Private Sub CommandButton1_Click() Sheets("EXPENSES2").Range("D4").Value = Sheets("EXPENSES1").Range("D30").Value
Sheets("EXPENSES2").Range("F4:K4").Value = Sheets("EXPENSES1").Range("F30:K30").Value
Sheets("EXPENSES2").Activate
ActiveSheet.Range("A5").Select
End Sub
Many Thanks