Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ollie Hill
 
Posts: n/a
Default How do I get text to flash in MS Excel

How do I get text (in a cell) to flash in MS Excel?
Thanks.
OH
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Ollie,

'VBA CODE EXAMPLES
'
'Created by Bill Manville
'
'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

HTH,
Bernie
MS Excel MVP


"Ollie Hill" <Ollie wrote in message
...
How do I get text (in a cell) to flash in MS Excel?
Thanks.
OH



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
justify text in a text box in excel Christine Excel Discussion (Misc queries) 2 July 20th 05 08:53 PM
Excel 2002 Will Not Print Text Boxes Mark Excel Discussion (Misc queries) 3 April 16th 05 12:03 AM
I need shortcut in Excel for coping text only and not the entire c UABCSA Excel Discussion (Misc queries) 4 April 14th 05 01:58 AM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
How do I fix text wrapping in Excel? Ducky88 Excel Discussion (Misc queries) 1 February 18th 05 01:37 AM


All times are GMT +1. The time now is 04:29 AM.

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"