G
Guest
I have a workbook that uses a clock procedure to update the sheet every minute. I have created a procedure called StopClock that is called from Workbook_BeforeClose. However, after I close the workbook and leave Excel open the workbook application relaunches itself. The StopClock procedure is listed below. Is there anything that I am missing
Public Sub StopClock(
'Cancels the Clock procedur
On Error Resume Nex
Application.OnTime ClockTick, "SQLClock", , Fals
End Su
'Here is the clock procedur
Public Sub Clock(
Dim ClockTick As Dat
Sheet1.Range("J8") = Tim
'Update the dashboard every minut
ClockTick = Now + TimeValue("00:01:00"
'Run these SQL queries for the update
With Applicatio
.OnTime ClockTick, "Clock
.OnTime ClockTick, "AgentRequests
.OnTime ClockTick, "AgentEscalate
.OnTime ClockTick, "AgentClosed
.OnTime ClockTick, "TopProblem
.OnTime ClockTick, "ReqOpen
.OnTime ClockTick, "ReqResolve
End Wit
End Sub
Public Sub StopClock(
'Cancels the Clock procedur
On Error Resume Nex
Application.OnTime ClockTick, "SQLClock", , Fals
End Su
'Here is the clock procedur
Public Sub Clock(
Dim ClockTick As Dat
Sheet1.Range("J8") = Tim
'Update the dashboard every minut
ClockTick = Now + TimeValue("00:01:00"
'Run these SQL queries for the update
With Applicatio
.OnTime ClockTick, "Clock
.OnTime ClockTick, "AgentRequests
.OnTime ClockTick, "AgentEscalate
.OnTime ClockTick, "AgentClosed
.OnTime ClockTick, "TopProblem
.OnTime ClockTick, "ReqOpen
.OnTime ClockTick, "ReqResolve
End Wit
End Sub