Horspool68
New Member
- Joined
- Jul 24, 2015
- Messages
- 3
Hi All ! just wrote this macro
Private Sub CommandButton1_Click()
Label1.BackColor = &HFF&
Application.Wait (Now + TimeValue("00:00:01"))
Label1.BackColor = &H8000000F
Application.Wait (Now + TimeValue("00:00:01"))
Do Until OptionButton11.Value = True
Loop
End Sub
I would like to use this on an excel file used to record production Data ( OEE ) on pressing the downtime button I would like Label1 backcolor flash from grey to red until the option button is activated. When I run this the label changers color and then my excel freezes up , is this a computer spec issue or am I missing something?
Private Sub CommandButton1_Click()
Label1.BackColor = &HFF&
Application.Wait (Now + TimeValue("00:00:01"))
Label1.BackColor = &H8000000F
Application.Wait (Now + TimeValue("00:00:01"))
Do Until OptionButton11.Value = True
Loop
End Sub
I would like to use this on an excel file used to record production Data ( OEE ) on pressing the downtime button I would like Label1 backcolor flash from grey to red until the option button is activated. When I run this the label changers color and then my excel freezes up , is this a computer spec issue or am I missing something?