Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Module1
Public NextTime As Date
Public Stoppen As Integer
Sub Flash1()
NextTime = Now + TimeValue("00:00:01")
With ActiveWorkbook.Styles("Flash").Font
If .ColorIndex = 2 Then
.ColorIndex = 3
Else
NextTime = Now + TimeValue("00:00:01")
.ColorIndex = 2
End If
End With
Application.OnTime NextTime, "Flash1"
End Sub
Sub StopNu()
Application.OnTime NextTime, "Flash1", schedule:=False
ActiveWorkbook.Styles("Flash").Font.ColorIndex = xlAutomatic
MsgBox "stop nu"
End Sub
Private Sub CommandButton1_Click()
Dim strRange As String
If CommandButton1.Caption = "OK" Then
'Check caption, then change it.
CommandButton1.Caption = "Clicked"
Else
CommandButton1.Caption = "OK"
End If
' Worksheets("Sheet1").Range("a20").Style.Name = "Flash" 'Does not work!!
Call Flash1 'starts the flash1 routine
MsgBox "einde routine"
End Sub
Sub StopIt()
Call StopNu 'Started with command button, but does not work Key press in not seen by the system
MsgBox "Stop nu!"
End Sub