I have populated a ComboBox with a list of strings and since that list is pretty long, I'm struggling to add an Auto-Complete feature like to the ComboBox who will display matching strings as the user types in characters.
An idea of what I want can be found here Auto-Complete with only text and not numbers ComboBox Excel VBA but it's done using VBA Excel.
Here is the code I got so far
Private Sub ComboBox1_Click()
Dim i As Long
Static found As Boolean
If found Then
found = False
Exit Sub
End If
With FormDialog.ComboBox1
.DropDown
'.MatchEntry = fmMatchEntryFirstLetter
If .Text = "" Then Exit Sub
For i = 0 To .ListCount
If InStr(.List(i), .Text) > 0 Then
found = True
If found Then
' the suggestion code will go here I think
End If
Exit For '<--| exit loop
End If
Next i
End With
End Sub
If anyone can help me with this, I will be thankful.