Table of Contents
To make text flash briefly in desktop Excel, use a VBA macro that changes the font color and restores it after a few seconds. If you are flagging overdue items or exceptions in a shared workbook, use conditional formatting with a visible label such as Review needed.
Create a short flash in desktop Excel
- Save a copy of the workbook as an Excel Macro-Enabled Workbook (.xlsm). Use a test cell with uniformly formatted text.
- Press Alt + F11 on Windows to open the VBA editor, then select Insert → Module.
- Paste the macro below. Replace
Sheet1andA1with your actual sheet name and cell address.


Option Explicit
Sub FlashText()
Dim target As Range
Dim originalColor As Long
Dim i As Long
Set target = ThisWorkbook.Worksheets("Sheet1").Range("A1")
originalColor = target.Font.Color
On Error GoTo RestoreColor
For i = 1 To 2
target.Font.Color = vbRed
DoEvents
Application.Wait Now + TimeSerial(0, 0, 1)
target.Font.Color = vbBlue
DoEvents
Application.Wait Now + TimeSerial(0, 0, 1)
Next i
RestoreColor:
target.Font.Color = originalColor
End SubReturn to Excel, press Alt + F8, select FlashText, and choose Run. Keep the target sheet visible. The macro runs once and Excel may briefly pause while it alternates colors. Use the file only where macros are allowed.
Optional: Assign it to a button
On the Developer tab, choose Insert → Button under Form Controls. Draw the button and assign FlashText. Right-click the button and choose Edit Text to rename it.
Older screenshots of the VBA editor and button setup





Highlight values without VBA
For a persistent alert, select the range and open Home → Conditional Formatting → New Rule. Set a rule for the value or formula you care about, apply a contrasting fill, and include text that explains the status.
Reader Comments 0
Sign in with email or Google to join the discussion.