Arkadaşlar şunu kulladım fakat o sadece b1 hücresinde işe yarıyor.
Bunu B1-B300 arasında nasıl çalıştırıcaz?
VisulBasic
=========
Option Explicit
Public CellCheck As Boolean
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("B1") >= "EKSİK VAR!" And CellCheck = False Then
Call StartBlink
CellCheck = True
ElseIf Range("B1") <> "EKSİK VAR!" And CellCheck = True Then
Call StopBlink
CellCheck = False
End If
End Sub
=======
MODUL
====
Option Explicit
Public RunWhen As Double
Sub StartBlink()
If Range("B1").Interior.ColorIndex = 3 Then
Range("B1").Interior.ColorIndex = 6
Else
Range("B1").Interior.ColorIndex = 3
End If
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "StartBlink", , True
End Sub
Sub StopBlink()
Range("B1").Interior.ColorIndex = xlAutomatic
Application.OnTime RunWhen, "StartBlink", , False
End Sub
Bunu B1-B300 arasında nasıl çalıştırıcaz?
VisulBasic
=========
Option Explicit
Public CellCheck As Boolean
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("B1") >= "EKSİK VAR!" And CellCheck = False Then
Call StartBlink
CellCheck = True
ElseIf Range("B1") <> "EKSİK VAR!" And CellCheck = True Then
Call StopBlink
CellCheck = False
End If
End Sub
=======
MODUL
====
Option Explicit
Public RunWhen As Double
Sub StartBlink()
If Range("B1").Interior.ColorIndex = 3 Then
Range("B1").Interior.ColorIndex = 6
Else
Range("B1").Interior.ColorIndex = 3
End If
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "StartBlink", , True
End Sub
Sub StopBlink()
Range("B1").Interior.ColorIndex = xlAutomatic
Application.OnTime RunWhen, "StartBlink", , False
End Sub
