makes a command button change color using cint(rnd.....add as many colors as you wish but be sure t
makes a command button change color using cint(rnd.....add as many colors as you wish but be sure to change the rnd value.....
Rate makes a command button change color using cint(rnd.....add as many colors as you wish but be sure t
(1(1 Vote))
con = CInt(Rnd(3) * 3)
If con = 3 Then
Command1.BackColor = &HFF00&
ElseIf con = 2 Then
Command1.BackColor = &HFF&
ElseIf con = 1 Then
Command1.BackColor = &HFF0000
ElseIf con = 0 Then
Command1.BackColor = &HFFFF&
End If
End Sub
makes a command button change color using cint(rnd.....add as many colors as you wish but be sure t Comments
No comments yet — be the first to post one!
Post a Comment