VB Code:
Private Sub checkOnePair()
'I used 2 to 14, as these are the cards you can have in the combobox...
Dim myArray(2 To 14) As Byte
'by default, all values are 0, no need to reset
'loop through all comboboxes
For x = 0 To 4
'check the card selected in the combobox
y = MyCombo(x).ItemData(MyCombo(x).ListIndex)
'increase the amount
myArray(y) = myArray(y) + 1
Next x
'loop through all cards
For y = 2 To 14
'look for a pair
If myArray(y) = 2 Then
'display a message we have a pair
MsgBox "Pair of " & y & "s."
End If
Next y
End Sub