Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$2" Then
With ThisWorkbook.ActiveSheet
登记行 = .Cells(Rows.Count, 7).End(3).Row + 1
.Cells(登记行, 7) = Format(Now(), "yyyy/mm/dd hh:mm:ss")
.Cells(登记行, 8) = .Range("A2")
.Cells(登记行, 9) = Application.Sum(.Cells(登记行 - 1, 9)) + .Range("A2")
.Cells(2, 2) = Application.Sum(.Cells(登记行 - 1, 9)) + .Range("A2")
End With
End If
End Sub