Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
I couldn't find the begining of this thread in Google, but have you considered the following solution. It has the advantage of preserving the undo functionality of Excel and the disadvantage of a constantly running code. Regards, KL 1) Create a named formula called TIMER =MOD(SECOND(NOW()),2)=1 2) Select the range you want to blink subject to a condition (or multiple conditions), say range A1:A100 3) Apply the following Conditional Format =TIMER*(A1<0) where (A1<0) is one of the many possible conditions. 4) put the following code into the VBA module of ThisWorkbook: Private Sub Workbook_BeforeClose(Cancel As Boolean) StopBlinking End Sub Private Sub Workbook_Open() StartBlinking End Sub 5) put the following code into a standard module (say Module1): Dim dtNext As Date Sub StartBlinking() dtNext = Now + TimeValue("00:00:01") Application.Calculate Application.OnTime dtNext, "StartBlinking" End Sub Sub StopBlinking() Application.OnTime dtNext, "StartBlinking", schedule:=False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Blinking Cell (Worksheet restarts) | Excel Programming | |||
Blinking Cell (Worksheet restarts) | Excel Programming | |||
Blinking Cell (Worksheet restarts) | Excel Programming | |||
Blinking Cell (Worksheet restarts) | Excel Programming | |||
Blinking Cell (Worksheet restarts) | Excel Programming |