Returns a reference to the global Timer object.
Read-only property
Set variable = object.Timer |
Timer Object
The Timer object is exposed globally. That means you can directly access the properties and methods of the Timer object from any routine without first obtaining a reference to that object. For example, the following VBScript code enables the timer:
Sub EnableTimer
Dim objAPTimer
Set objAPTimer = Application.Timer
objAPTimer.Enabled = True
End Sub
Since the Timer object is global, the above example can be shortened to the following one line example:
Sub EnableTimer
Timer.Enabled = True
End Sub
Sub EnableTimer
Dim objAPTimer
Set objAPTimer = Application.Timer
objAPTimer.Enabled = True
End Sub
Since the Timer object is global, the above example can be shortened to the following one line example:
Sub EnableTimer
Timer.Enabled = True
End Sub