İyi akşamlar,aşağıdaki kodu yazdım ve böylece hücre yanıp sönüyor ama durduracak kodu nasıl yazacağım?
Sub Renk1()
DoEvents
Sheets("Su İzleme Formu").Range("E9").Interior.Color = vbGreen
Sheets("Su İzleme Formu").Range("F9").Interior.Color = vbYellow
Application.OnTime Now + TimeValue("00:00:01"), "Renk2"
End Sub
Sub Renk2()
DoEvents
Sheets("Su İzleme Formu").Range("F9").Interior.Color = vbGreen
Sheets("Su İzleme Formu").Range("E9").Interior.Color = vbYellow
Application.OnTime Now + TimeValue("00:00:01"), "Renk1"
End Sub
Sub Renk1()
DoEvents
Sheets("Su İzleme Formu").Range("E9").Interior.Color = vbGreen
Sheets("Su İzleme Formu").Range("F9").Interior.Color = vbYellow
Application.OnTime Now + TimeValue("00:00:01"), "Renk2"
End Sub
Sub Renk2()
DoEvents
Sheets("Su İzleme Formu").Range("F9").Interior.Color = vbGreen
Sheets("Su İzleme Formu").Range("E9").Interior.Color = vbYellow
Application.OnTime Now + TimeValue("00:00:01"), "Renk1"
End Sub