Searching the Forum as well as the internet resources, I have located several discussions relating to the following Sub snippet. I've attempted to utilize this code in a Module as well as ThisWorkBook without success. The stopping of the Windows timer should occur whenever the user exits the workbook.

Help me understand my error please. Thank you !

Sub StopTimer()
On Error Resume Next
Application.OnTime Schedule:=False
End Sub