Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ew ew is offline
external usenet poster
 
Posts: 27
Default Help with blinking text

I am current using the blink text code found at www.cpearson.com but I would
like to make it so that if I were to change a value in a cell that it would
then start blinking. So for example: If cell A1 changes to 80% or lower
then make A1 start blinking. Also, I would like to make the cell's fill
color blink from white to red and not the text (this is not as crititcal).
Any help on this would be great.

Thanks in advance!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Help with blinking text

First modify Pearson's code to blink interior rather than font:

Public RunWhen As Double
Sub StartBlink()
If Range("A1").Interior.ColorIndex = 3 Then
Range("A1").Interior.ColorIndex = xlColorIndexAutomatic
Else
Range("A1").Interior.ColorIndex = 3
End If
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "StartBlink", , True
End Sub
Sub StopBlink()
Range("A1").Interior.ColorIndex = xlColorIndexAutomatic
Application.OnTime RunWhen, "StartBlink", , False
End Sub


Then in worksheet code enter:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
If Cells(1, 1).Value < 0.8 Then Call StartBlink
End Sub

REMEMBER worksheet code
--
Gary''s Student


"EW" wrote:

I am current using the blink text code found at www.cpearson.com but I would
like to make it so that if I were to change a value in a cell that it would
then start blinking. So for example: If cell A1 changes to 80% or lower
then make A1 start blinking. Also, I would like to make the cell's fill
color blink from white to red and not the text (this is not as crititcal).
Any help on this would be great.

Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Help with blinking text

Thanks! Is there also a way to increase the rate the blinking occures?
--
EW - Analyst


"Gary''s Student" wrote:

First modify Pearson's code to blink interior rather than font:

Public RunWhen As Double
Sub StartBlink()
If Range("A1").Interior.ColorIndex = 3 Then
Range("A1").Interior.ColorIndex = xlColorIndexAutomatic
Else
Range("A1").Interior.ColorIndex = 3
End If
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "StartBlink", , True
End Sub
Sub StopBlink()
Range("A1").Interior.ColorIndex = xlColorIndexAutomatic
Application.OnTime RunWhen, "StartBlink", , False
End Sub


Then in worksheet code enter:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
If Cells(1, 1).Value < 0.8 Then Call StartBlink
End Sub

REMEMBER worksheet code
--
Gary''s Student


"EW" wrote:

I am current using the blink text code found at www.cpearson.com but I would
like to make it so that if I were to change a value in a cell that it would
then start blinking. So for example: If cell A1 changes to 80% or lower
then make A1 start blinking. Also, I would like to make the cell's fill
color blink from white to red and not the text (this is not as crititcal).
Any help on this would be great.

Thanks in advance!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blinking text if.... ewagz Excel Programming 1 January 24th 06 03:00 PM
Blinking Text KK[_5_] Excel Programming 2 November 16th 05 10:57 AM
blinking text lucas Excel Programming 5 October 31st 05 04:12 PM
Blinking Text? Wazza McG[_2_] Excel Programming 1 December 6th 03 09:59 PM
Blinking Text Jerry[_11_] Excel Programming 4 October 3rd 03 04:40 AM


All times are GMT +1. The time now is 12:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"