Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A5:B417")) Is Nothing Then
Application.EnableEvents = False
Cells(Target.Row, 13).Value = Format(Date, "d mmm yy")
Cells(Target.Row, 14).Value = Format(Time, "hh:mm:ss")
Call tri
Application.EnableEvents = True
End If
End Sub