My workbook contains 22 worksheets and each worksheet has a macro with the
following code each under a separate module in Visual Basic. It has been
modified to fit each separate worksheet such as (StartBlink1, StartBlink2,
etc ). The reason I thought it might be the open and close codes was because
that code identified StartBlink which would have been one worksheet; mine
contains numerous worksheets.
Public RunWhen As Double
Sub StartBlink1()
With ThisWorkbook.Worksheets("VISN 1").Range("B120:K120").Font
If .ColorIndex = 3 Then ' Red Text
.ColorIndex = 5 ' Blue Text
Else
.ColorIndex = 3 ' Red Text
End If
End With
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink1", ,
True
End Sub
Sub StopBlink1()
ThisWorkbook.Worksheets("VISN 1").Range("B120:K120").Font.ColorIndex = _
xlColorIndexAutomatic
Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink1", ,
False
End Sub