[RESOLVED] Condense code...
Hi, how would you condense this into on with instead of multiple due to them all having the same values but different number?
VB Code:
Private Sub Form_Load()
Call Button_Captions
Call Label_Captions
Me.BackColor = vbBlue
'THIS DOESNT WORK SO PROBABLY GOING WRONG SOMEWHERE. WANT
'TO CONDENSE THE ONES BELOW INTO ONE INSTEAD OF MULTIPLE.
Dim intFrame As Integer
With Frame(intFrame)
.BackColor = vbBlue
.ForeColor = vbWhite
End With
'With Frame(0)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(1)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(2)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(3)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(4)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(5)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
'With Frame(6)
' .BackColor = vbBlue
' .ForeColor = vbWhite
'End With
End Sub