Hi,
The below code is used for blinking cell. while I try to protect sheet by using password. system generate error message i.e, Run time error '1004' : Application-defined or object-defined error when I debug code i.e, Range(FR).Interior.ColorIndex = xlColorIndexNone is highlight. plz help to resolve the issue.
Public NextFlash As Double
Public Const FR As String = "Sheet1!K18"
Sub StartFlashing()
If Range(FR).Interior.ColorIndex = 3 Then
Range(FR).Interior.ColorIndex = xlColorIndexNone
Else
Range(FR).Interior.ColorIndex = 3
End If
NextFlash = Now + TimeSerial(0, 0, 1)
Application.OnTime NextFlash, "StartFlashing", , True
End Sub
Sub StopFlashing()
Range(FR).Interior.ColorIndex = xlColorIndexNone
Application.OnTime NextFlash, "StartFlashing", , False
End Sub
The below code is used for blinking cell. while I try to protect sheet by using password. system generate error message i.e, Run time error '1004' : Application-defined or object-defined error when I debug code i.e, Range(FR).Interior.ColorIndex = xlColorIndexNone is highlight. plz help to resolve the issue.
Public NextFlash As Double
Public Const FR As String = "Sheet1!K18"
Sub StartFlashing()
If Range(FR).Interior.ColorIndex = 3 Then
Range(FR).Interior.ColorIndex = xlColorIndexNone
Else
Range(FR).Interior.ColorIndex = 3
End If
NextFlash = Now + TimeSerial(0, 0, 1)
Application.OnTime NextFlash, "StartFlashing", , True
End Sub
Sub StopFlashing()
Range(FR).Interior.ColorIndex = xlColorIndexNone
Application.OnTime NextFlash, "StartFlashing", , False
End Sub