[font=Courier New][color=darkblue]Public[/color] Flashing [color=darkblue]As[/color] [color=darkblue]Boolean[/color]
[color=darkblue]Dim[/color] dtDate [color=darkblue]As[/color] Date
[color=darkblue]Sub[/color] StartFlashing()
Flashing = [color=darkblue]True[/color]
[color=darkblue]With[/color] UserForm1.TextBox1
[color=darkblue]If[/color] .BackColor = RGB(255, 255, 255) [color=darkblue]Then[/color]
.BackColor = RGB(250, 0, 0)
[color=darkblue]Else[/color]
.BackColor = RGB(255, 255, 255)
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]End[/color] [color=darkblue]With[/color]
dtDate = Now + TimeValue("00:00:01")
Application.OnTime dtDate, "StartFlashing"
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[color=darkblue]Sub[/color] StopFlashing()
Application.OnTime dtDate, "StartFlashing", , [color=darkblue]False[/color]
UserForm1.TextBox1.BackColor = RGB(255, 255, 255)
Flashing = [color=darkblue]False[/color]
[color=darkblue]End[/color] Sub
[/font]