Thread: Blinking Text
View Single Post
  #3  
Old February 2nd, 2008, 10:23 AM posted to microsoft.public.excel.worksheet.functions
Esra Dekan
external usenet poster
 
Posts: 22
Default Blinking Text

On Sat, 2 Feb 2008 02:09:24 -0600, "Héctor Miguel"
wrote:

hi, Esra !

OK, i know its kind of frowned on, but I need to have a cell that flashes text.
How do i do that in Office 2007?


see: http://www.cpearson.com/excel/BlinkingText.aspx

or... 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...

if any doudbts (or further information)... would you please comment ?
hth,
hector.

assuming 'a cell' es [B1] and you need it to 'flash' if it's value is greater than 5

1) select [B1]... - [menu] format / conditional format...
formula: - =(b15)*(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



No that doesnt seem to work for me.

When I open or close the workbook with the private subs in there, it
says compiling error, sub or function not defined

Same thing when i close the workbook


When i use conditional formatting, it says "You cannot use relative
references in Conditional Formatting criteria for colour scales, data
bars and icon sets."

Am I doing something wrong?

ty

Esra