I now have the procedure in an Standard Module, and it works very well.
But...
I'm using the Flash routine depending on the setting of a Check Box.
I have a Linked cell with the Check Box linking to P24
In P25 if have If(P24 = True,1,"")
My conditional formatting says "=AND(P25= 1,MOD(SECOND(NOW()),2)=1)"
When I click the Check box the flashing does occur, but when I unclick the check box I get an error message: "Method 'OnTime' of Object '_Application' failed'
Here's my code:
------------------
Sub RepeatOneSec()
C = Range("P25").Value
If C = 1 Then
ActiveWorkbook.Styles("normal").NumberFormat = _
ActiveWorkbook.Styles("normal").NumberFormat
NextTime = Now() + TimeSerial(0, 0, 1)
Application.OnTime NextTime, "RepeatOneSec"
Else
Call EndProcess
End If
End Sub
--------------------
Sub EndProcess()
Application.OnTime NextTime, "RepeatOneSec", , False
End Sub
------------------
Any guidance would be appreciated.
Thanks
StanSz