make cell flash

  • Thread starter Thread starter Guest
  • Start date Start date
hi, Lloyd !
Please help I want cell b1 to flash if greater then 5

there is a wise-tricky procedure [posted by KL in spanish ng sometime ago]...
[and with minor changes based on Thomas Jansen -1999- post]...
that let's you to preserve the undo-levels, and you might want to give it a try...

hth,
hector.

1) select 'B1'... -> [menu] format / conditional format...
[formula]: -> =(b1>5)*(mod(second(now()),2)=0)
[format]: -> apply formats as needed/wished/...

2) copy/paste the following code-lines:
===
a) in a general code module:
===
Option Private Module
Public Sequence As Date
Sub StartBlinking()
Sequence = Now + TimeSerial(0, 0, 1)
Worksheets(1).Range("b1").Calculate ' modify/adapt/... worksheet's index/name as appropriate
Application.OnTime Sequence, "StartBlinking"
End Sub
Sub StopBlinking()
On Error Resume Next
Application.OnTime Sequence, "StartBlinking", Schedule:=False
End Sub
===
b) in 'ThisWorkbook' code module:
===
Private Sub Workbook_Open()
StartBlinking
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
StopBlinking
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Flashing Cell 6
Formula Help 2
help with formula 1
An upsetting NEW motherboard issue 28
EXCEL FORMULA 2
copy formula 1
Make a cell flash 3
Excel Need Countifs Formula Help 0

Back
Top