-
-
Save ndthanh/99245f50f8d253977613616a0ca8ee56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Option Explicit | |
| Sub blink_cell() | |
| Dim blinking_cell As Range | |
| Set blinking_cell = Sheet1.Range("C7") | |
| Do While Sheet1.Range("B1").Value < Sheet1.Range("B7").Value | |
| blinking_cell.Interior.ColorIndex = 43 | |
| Application.Wait (Now + TimeValue("0:00:01")) | |
| blinking_cell.Interior.ColorIndex = 0 | |
| Application.Wait (Now + TimeValue("0:00:01")) | |
| blinking_cell.Interior.ColorIndex = 43 | |
| DoEvents | |
| If Sheet1.Range("C1").Value = 1 Then Exit Do | |
| Loop | |
| If Sheet1.Range("B1").Value >= Sheet1.Range("B7").Value Then | |
| blinking_cell.Interior.Color = vbWhite | |
| End If | |
| End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment