still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 782
- Office Version
- 365
- Platform
- Windows
Hi
I got help with a macro to flash a cell if a string was present due to an If statement, from HERE. Thank you very much!!!!
I'm trying to modify it to flash a cell with a value instead of a string
When "Balance1" is = to or less than 100, I want "Balance" to flash a couple of times. "balance" is the result of an If statement
mike
I got help with a macro to flash a cell if a string was present due to an If statement, from HERE. Thank you very much!!!!
I'm trying to modify it to flash a cell with a value instead of a string
When "Balance1" is = to or less than 100, I want "Balance" to flash a couple of times. "balance" is the result of an If statement
VBA Code:
Sub flash()
Dim i As Long
If Range("Balance1").Value = "<=100" Then
Application.EnableEvents = False
With Range("balancee")
For i = 1 To 1
.Font.ColorIndex = 2
Application.Wait (Now + TimeValue("00:00:01"))
.Font.ColorIndex = 3
Application.Wait (Now + TimeValue("00:00:01"))
Next i
End With
Application.EnableEvents = True
End If
End Sub