I asked this questioin in another forum, but I am not sure that it made it through. I have created a stopwatch in Excel that is resident in each worksheet. I record times of presentations for the workshops that I conduct for public speaking. The stopwatch
starts and stops with the code I have. My difficulty is that when I enter other data elsewhere on the worksheet, the stopwatch stops timing.I hope that someone in the forum might be able to tell me what additional vba code I need to add so that the stopwatch will continue to time while I keyboard comments onto the worksheet. I included the code that I have below.
Thanks,
Confused by Code
Dim stopped
Dim StartTimer
Public Sub startClock()
Dim start
start = Timer
Do While stopped = False
DoEvents
Worksheets("Sheet1").Range("F6").Value = Int((Timer - start + 0.5) / 60)
Worksheets("Sheet1").Range("H6").Value = (Timer - start) Mod 60
Worksheets("Sheet1").Range("I6").Value = (Timer - start + 0.5) - (Int(Timer - start + 0.5))
Loop
End Sub
Private Sub cmdStart1_Click()
startClock
End Sub
Private Sub cmdStop1_Click()
stopped = True
End Sub
Private Sub CommandButtonStart_Click()
End Sub
Private Sub CommandButtonStop_Click()
End Sub