A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Any suggestions?
Unfortunately suggestions is all I can offer because I tested my previous post on a dummy workbook with another workbook open and it worked without re-opening when other workbooks were open. However, I did not have any calculations taking place so I wonder if your workbook is calculating before it saves and as a result, it calls the work calculate event and turns the timer back on. Try using a public Boolean variable to suppress the calculate event when it calls the shutdown. (It won't suppress calculating; just suppress the calculate event code).
Public NoActivity As Date
Public SuppressCalcEvent As Boolean
Public Sub ShutDown()
On Error Resume Next
Application.DisplayAlerts = False
SuppressCalcEvent = True
Call StopClock
With ThisWorkbook
.Save
.Close
End With
End Sub
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
If SuppressCalcEvent Then Exit Sub
Call StopClock
Call StartClock
End Sub