Hi David,
It seems to be working fine on my end. Should there be value left on columns J and K after I have typed a number? Or does it supposed to disappear?
This is the code I am using:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Range, c As Range
Set r = Intersect(Target, Columns("B:C"))
If Not r Is Nothing Then
Application.EnableEvents = False
For Each c In r
With Cells(c.Row, "A")
If IsNumeric(.Value) Then
.Value = .Value + IIf(c.Column = 2, -c.Value, c.Value)
Cells(c.Row, "D").Value = Now
Cells(c.Row, "D").NumberFormat = "dd-mm-yyyy, hh:mm:ss"
c.ClearContents
End If
End With
Next c
Application.EnableEvents = True
End If
End Sub
Awaiting for your response.
Regards,
John