Hi Guys,
I have this basic code that works when run manually, but the code that is supposed to run this every x seconds doesn't seem to work.
I have this code in a module
Sub Odds()
RunTimer = Now + TimeValue("00:00:05")
Application.OnTime RuntTimer, "Odds"
With Sheets("Sheet2")
.Range("A3").Copy Destination:=.Range("H" & Rows.Count).End(xlUp).Offset(1)
End With
End Sub
In the workbook code i have
Private Sub Workbook_Open()
Call Odds
End Sub
Could anyone assist me with why this isn't running at the specified interval?
I have this basic code that works when run manually, but the code that is supposed to run this every x seconds doesn't seem to work.
I have this code in a module
Sub Odds()
RunTimer = Now + TimeValue("00:00:05")
Application.OnTime RuntTimer, "Odds"
With Sheets("Sheet2")
.Range("A3").Copy Destination:=.Range("H" & Rows.Count).End(xlUp).Offset(1)
End With
End Sub
In the workbook code i have
Private Sub Workbook_Open()
Call Odds
End Sub
Could anyone assist me with why this isn't running at the specified interval?