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