Make Array for your label like a lbl(0) -> lbl(10) then there is less code
VB Code:
Public Sub ChangeLabelColor(index As Integer) With lbl(index) .Caption = 1 .BackColor = RGB(44, 164, 214) .ForeColor = RGB(255, 255, 255) End With End Sub
|
Results 1 to 13 of 13
Threaded View
|
Click Here to Expand Forum to Full Width |