Sub Test()
Application.OnTime Now + TimeValue("00:00:01"), "Sheet1.Worksheet_Change"
End Sub
And in worksheet change I put call Test at the end
But I got argument not optional error
Any help please
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
If Target.Value <= 5 Then
Exit Sub
End If
If Format(Now, "ss") Mod 2 = 0 Then
Range("A1").Interior.Color = vbRed
Range("A1").Font.Color = vbWhite
Range("A1").Font.Size = 11
Range("A1").Font.Bold = True
Range("A1").Interior.ColorIndex = xlNone
Range("A1").Font.Color = vbBlack
Range("A1").Font.Bold = False
End If
Call Test
End If
End Sub
I didn't get what argument is missing ..