Good afternoon everyone,
When the value is pasted in the Time Summary sheet, Excel switches to that sheet, instead of just pasting the values and staying in the current sheet1 that I am in.
The screen should not jump to the Time Summary sheet.
Can someone please assist.
VBA Code:
Sub Stop_Timer()
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:01"), "IncreamentTimer", schedule:=False
If Err = 0 Then
Application.ScreenUpdating = False
ThisWorkbook.Sheets("Sheet1").Range("L9").Value = Format(Range("K8").Value - ThisWorkbook.Sheets("Sheet1").Range("K9").Value, "hh:mm:ss")
ThisWorkbook.Sheets("Time Summary").Select
ThisWorkbook.Worksheets("Time Summary").Range("E12").Select
Selection.Copy
ThisWorkbook.Worksheets("Time Summary").Range("H12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ThisWorkbook.Sheets("Sheet1").Range("J8").Value = "Timer OFF"
ThisWorkbook.Sheets("Sheet1").Range("J8").Font.Color = vbBlack
Else
MsgBox "Timer is currently OFF.", vbExclamation, "Timer is OFF!"
End If
End Sub
When the value is pasted in the Time Summary sheet, Excel switches to that sheet, instead of just pasting the values and staying in the current sheet1 that I am in.
The screen should not jump to the Time Summary sheet.
Can someone please assist.