Make a Button Blink????

Z

Zach

How do i make for instance ButtonA blink for 3 seconds if a certain
result comes up with the click of Button B????
 
M

marcus

Hi Zach

Give this a try. You will need to create two Command buttons named
Commandbutton1 and Comandbutton2.

Take Care

Marcus

Option Explicit
Private Sub CommandButton1_Click()
Dim i As Integer

Do Until i = 3
Application.Wait (Now + TimeValue("0:00:" & i))
If CommandButton2.BackColor = &H8000000D Then
CommandButton2.BackColor = &H8000000E
ElseIf CommandButton2.BackColor = &H8000000E Then
CommandButton2.BackColor = &H8000000D
End If
i = i + 1

Loop

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top