Hi,
I have the following code which is activated when a user clicks on a Start button.
MsgBox "Time Started. You have 15 Minutes.", , "Time Started"
Application.OnTime When:=Now + TimeValue("00:15:00", Name:="ProjectCompany.Module1.MacroStart"
The timer runs until 15 mins is up and then runs the code in MacroStart which is fine.
However, the user can also click on a QUIT button to exit what they are doing, and want to know how long they spent on the task until clicking on the QUIT button. e.g if they spent only 6 mins on the task. How do record the time since they hit the START button until they hit the QUIT button?, possible in minutes & seconds?.
I have the following code which is activated when a user clicks on a Start button.
MsgBox "Time Started. You have 15 Minutes.", , "Time Started"
Application.OnTime When:=Now + TimeValue("00:15:00", Name:="ProjectCompany.Module1.MacroStart"
The timer runs until 15 mins is up and then runs the code in MacroStart which is fine.
However, the user can also click on a QUIT button to exit what they are doing, and want to know how long they spent on the task until clicking on the QUIT button. e.g if they spent only 6 mins on the task. How do record the time since they hit the START button until they hit the QUIT button?, possible in minutes & seconds?.