Hi BigBlackMamba
Put this code in the Workbook Module
Option Explicit
Private Sub Workbook_Open()
StartTimer
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
StopTimer
Call StopTimer
End Sub
Put this code in a general module
Public RunTime
Option Explicit
Public Sub Copy_1_To_2()
Dim LR As Long
LR = Sheet2.Range("A" & Rows.Count).End(xlUp).Row + 1
Sheet1.UsedRange.Copy Destination:=Sheet2.Range("A" & LR)
StartTimer
End Sub
Sub StartTimer()
RunTime = Now + #12:00:02 AM#
Application.OnTime RunTime, "Copy_1_To_2", schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime RunTime, "Copy_1_To_2", schedule:=False
End Sub
A sample book is attached for your perusal. The code is set to run every 2 seconds.
John
Bookmarks