hi
i need advising how i can blink in label directly when i open userform it based on the label ="Textbox Cannot be blank...." it loop for 10 time and change color as what is in my code i try but it doesn't success
Code
Private Sub UserForm_Activate()
Dim i As Long
If Me.Label1.Caption = "Textbox Cannot be blank...." Then
Me.Label1.ForeColor = vbRed
For i = 1 To 10
Me.Label1.BackColor = vbRed
Application.Wait (Now + TimeValue("0:00:1"))
Me.Label1.BackColor = vbGreen
Application.Wait (Now + TimeValue("0:00:1"))
Me.Label1.BackColor = vbWhite
Next i
End If
End Sub
Display More