Forum Discussion
BBowen6501
Sep 26, 2022Copper Contributor
Auto on/off blink cells
Hi! I have been banging my head on my desk for several days now trying to make any of 3 cells blink in a worksheet when a specific criteria has been me. Brief synopsis: One worksheet (WS1) au...
HansVogelaar
Sep 27, 2022MVP
If you really really want this, see the attached sample workbook. There is code in ThisWorkbook and in Module1. Both are required.
BBowen6501
Sep 27, 2022Copper Contributor
Bold item near bottom is tripping "Variable not defined" compile error. Please advise. Thanks!
Sub ManageBlink()
Dim rng As Range
For Each rng In Worksheets("CI").Range("A23,A31,A39")
With rng
If .Value = "PARTS" Then
If .Interior.ColorIndex = 3 Then
.Interior.ColorIndex = 0
Else
.Interior.ColorIndex = 0
End If
End If
End With
Next rng
dtmNext = DateAdd("s", 1, Now)
Application.OnTime dtmNext, "ManageBlink"
End Sub
- HansVogelaarSep 27, 2022MVP
You must have made a mistake somewhere - I have tested the code and it is working correctly in the sample workbook.
Check very carefully.
- BBowen6501Sep 27, 2022Copper ContributorMacros disallowed from outside source, so copy and pasted into mine with necessary changes to sheet names. That's it.
- HansVogelaarSep 27, 2022MVP
Does the sample workbook that I attached work for you?
- BBowen6501Sep 27, 2022Copper ContributorNope. Still no dice.
- BBowen6501Sep 27, 2022Copper ContributorOne moment. Forgot second piece. Sorry.