Hum, i'm afraid my knowledge of excel VBA isnt this advanced. Please can you hold my hand and help me through this.
How do i get it to run when cell b2 is edited?
Dim NextTime As Date
Sub StartFlash()
NextTime = Now + TimeValue("00:00:10")
With ActiveWorkbook.Styles("Flashing").Font
If .ColorIndex = xlAutomatic Then .ColorIndex = 3
.ColorIndex = 5 - .ColorIndex
End With
Application.OnTime NextTime, "StartFlash"
End Sub
Sub StopFlash()
Application.OnTime NextTime, "StartFlash", schedule:=False
ActiveWorkbook.Styles("Flashing").Font.ColorIndex = xlAutomatic
End Sub
Bookmarks