EXCEL 表格历史数字自动记录,

2024-12-23 13:45:09
推荐回答(1个)
回答1:

代码如下
Private Sub WorkSheet_Change(ByVal Target As Excel.Range)
Dim Tr, Tc
Tr = Target.Row
Tc = Target.Column
k = WorksheetFunction.CountA(Range("B8:B65536"))
If Tr = 2 And Tc = 2 Then
Cells(k + 8, 2) = Cells(2, 2)
End If
End Sub