Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

in excel i want to make text flash or blink pls help 1

Status
Not open for further replies.

is1ma1il

MIS
Feb 15, 2002
51
US
I would like to get text to blink or flash pls help
 
To create a blinking cell:

If you define a new Style (Format / Style / Flash/ Add ) and apply that style to the cells you want to flash, paste the following code into a module sheet and run the procedure Flash from Auto-Open if desired you will get the text flashing alternately white and red.

Dim NextTime As Date

Sub Flash()
NextTime = Now + TimeValue("00:00:01")
With ActiveWorkbook.Styles("Flash").Font
If .ColorIndex = 2 Then .ColorIndex = 3 Else .ColorIndex = 2
End With
Application.OnTime NextTime, "Flash"
End Sub

Sub StopIt()
Application.OnTime NextTime, "Flash", schedule:=False
ActiveWorkbook.Styles("Flash").Font.ColorIndex = xlAutomatic
End Sub
 
Thanks Skip. I am just beginning to get into VBA, having resisted it for a LONGGGGGG time.

A star from someone who has delivered some really elegant VBA solutions is much appreciated! :~/
 
Hasit,

Like, "Why didn't I think of THAT!"

Really great application of a scheduled event. Glad you are gettin' yer feet wet!! :) Skip,
metzgsk@voughtaircraft.com
 
Thanks guys

I would like to get into VBA myself was tinkering but not really getting anywhere.

Any suggestions where I start?

[thumbsup2]
 
1. Keep tinkering.
2. Use macro record and view results.
3. Ask questions.
4. Buy good reference matl -- I like John Walkenbach 5. View Tek-Tips STAR responses (plagiarize and GoTo 1 :) )
Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top