WR = Range("A1").End(xlDown).Row + 1
'ActiveWindow.ScrollRow = WR - 5 '只顯示最新幾筆資料
If (WR = 3) Or _
(Range("B" & WR - 1) <> Range("B2")) Then '總量有異動時才記錄
For I = 1 To 3
Cells(WR, I) = Cells(2, I)
Next
End If
Excel.Application.EnableEvents = 1
'For I = 1 To 10
' Cells(WR, I) = Cells(2, I)
'Next 'I
End Sub作者: 藍天麗池 時間: 2016-3-21 23:18
WR = Range("C1").End(xlDown).Row + 1
'ActiveWindow.ScrollRow = WR - 5 '只顯示最新幾筆資料
If (WR = 3) Or _
(Range("D" & WR - 1) <> Range("D2")) Then '總量有異動時才記錄
For I = 3 To 5
Cells(WR, I) = Cells(2, I)
Next
End If
Excel.Application.EnableEvents = 1
'For I = 1 To 10
' Cells(WR, I) = Cells(2, I)
'Next 'I
End Sub作者: 藍天麗池 時間: 2016-3-22 08:58