Private Sub Worksheet_Change(ByVal Target As Range)
Dim strOld As String
Dim strNew As String
Application.EnableEvents = False
strNew = Target
Application.Undo
strOld = Target
Target = strNew
MsgBox "Cell Data was: " & strOld & vbCrLf & "New data is: " & strNew
Application.EnableEvents = True
End Sub
|