Private Sub Worksheet_Calculate()
A = Sheet2.Range("A" & Rows.Count).End(xlUp).Offset(1)
If A = "" Then A = Time - TimeValue("00:00:01")
If Time > A Then
Sheet2.Range("A" & Rows.Count).End(xlUp).Offset(1) = Time
Sheet2.Range("B" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[A2]
Sheet2.Range("C" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[B2]
Sheet2.Range("D" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[C2]
Sheet2.Range("E" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[D2]
Sheet2.Range("F" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[E2]
Sheet2.Range("G" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[F2]
Sheet2.Range("H" & Rows.Count).End(xlUp).Offset(1) = Sheet1.[G2]
End If
End Sub作者: GBKEE 時間: 2015-7-7 05:45