VB Code:
Private Sub checkHighCard()
'I changed these to Long datatype
'then there will be no data type conversions and code is less likely to have errors
Dim highcard As Long, compareto As Long, I As Long
highcard = MyCombo(0).ItemData(MyCombo(0).ListIndex)
For I = 1 To 4
compareto = MyCombo(I).ItemData(MyCombo(I).ListIndex)
If highcard < compareto Then highcard = compareto
Next I
Select Case highcard
Case 14
MsgBox "Ace"
Case 13
MsgBox "King"
Case 12
MsgBox "Queen"
Case 11
MsgBox "Jack"
Case Else
MsgBox highcard
End Select
End Sub