Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Combo1_Change()
Dim iStart As Integer
Dim sString As String
Static iLeftOff As Integer
iStart = 1
iStart = Combo1.SelStart
If iLeftOff <> 0 Then Combo1.SelStart = iLeftOff: iStart = iLeftOff
End Sub
Private Sub Form_Load()
Dim i As Long
For i = 1 To 500
Randomize
Combo1.AddItem Chr(Int(Rnd * 26) + 97) & Chr(Int(Rnd * 26) + 97) & Chr(Int(Rnd * 26) + 97) & Chr(Int(Rnd * 26) + 97) & Chr(Int(Rnd * 26) + 97)
Next
Combo1.Text = ""
End Sub
Private Sub Combo1_Change()
For i = 0 To Combo1.ListCount
If Left(Combo1.List(i), 1) = Combo1.Text Then
SendKeys "{DOWN}"
End If
Next i
End Sub
Private Sub Form_Load()
Combo1.AddItem "abc"
Combo1.AddItem "1bc"
Combo1.AddItem "2bc"
Combo1.AddItem "3bc"
Combo1.AddItem "4bc"
Combo1.AddItem "5bc"
End Sub