Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

making cells flash excel

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Making cells flash in Excel

Making cells flash in Excel

ResolvedVersion 2007

Greg has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Making cells flash in Excel

Please could you advise how to make a cell in excel flash if a value in an adjacent cell meets certain criteria? Eg if the value is > 500 then the cell should flash.

Many thanks,
Greg

RE: Making cells flash in Excel


Does this help?

'==================================================================================
'- This code goes into Worksheet module (right click tab. View Code)
'==================================================================================
Dim Flash As Boolean
'==================================================================================
'- CELL DOUBLE CLICK to start & stop 'flash'
'==================================================================================
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address = "$A$1" Then
Flash = Not Flash
FLASHCELL
End If
End Sub
'==================================================================================
'- CELL CHANGES COLOUR UNTIL Flash=False
'==================================================================================
Private Sub FLASHCELL()
While Flash = True
F = Range("A1").Interior.ColorIndex
F = IIf(F = 3, 0, 3)
Range("A1").Interior.ColorIndex = F
Application.Wait Now + TimeValue("00:00:01")
DoEvents
Wend
Range("A1").Interior.ColorIndex = 3
End Sub

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Formst Excel to display leading zeroes

Select the cells that you want to have displaying leading zeroes.

From the 'Format' menu select 'Cells' (Or Right-click on the selected range and and select 'Format Cells').

In the 'Number' tab click on 'Custom' in the 'Category' window.

In the 'Type:' box enter zeroes that correspond to the size of the required number (eg 5 zeroes).

Click OK.

When you enter numbers into these cells, leading zeroes will be displayed.

eg 123 = 00123

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.