this is the code I have
I deleted the line & saved the file & retried
Same result
Dim tmp
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x
If Target.Cells.CountLarge > 1 Then Exit Sub
If Target.Row > 2 And Target.Column = 7 Then
Application.EnableEvents = False
x = Application.Match(Target.Offset(, -5).Value, Sheets(1).Columns(3), 0)
If Not IsError(x) Then
If MsgBox("New Stock Will Be Updated . If OK Click 'Yes'", vbYesNo + vbQuestion) = vbYes Then
Sheets(1).Cells(x, 5).Value = Target.Offset(, 2).Value
Cells(Target.Row, 1).Value = Format(Date & Space(1) & Time, "dd/mm/yyyy hh:mm")
Else
If Not IsEmpty(tmp) Then Target.Value = tmp
End If
End If
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.CountLarge > 1 Then Exit Sub
If Target.Row > 2 And Target.Column = 7 Then tmp = Target.Value
End Sub