Returns the index of the first item in the ComboBox that starts with the specified string.
Public Function FindItem(ByVal Item As String, Optional ByVal MatchCase As Boolean = False) As Integer
ComboBox Object
The following parameters are available:
Parameter | Description |
Item | The String to search for. |
MatchCase | Specifies whether the search is case sensitive. |
Integer. The zero-based index of the first item found; returns -1 if no match is found.