Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Range
If Target.Address = "$B$2" Then
If IsEmpty(i) Then
i = 1
Else
i = i + 1
End If
Set r = ThisWorkbook.Sheets("Sheet2").Cells(i, 1)
r.Value = Target.Value
Set r = ThisWorkbook.Sheets("Sheet2").Cells(i, 2)
r.Value = Time()
End If
End Sub