FindItem Method

Returns the index of the first item in the ComboBox that starts with the specified string.

Syntax

Public Function FindItem(ByVal Item As String, Optional ByVal MatchCase As Boolean = False) As Integer

Applies To

ComboBox Object

Parameters

The following parameters are available:

Parameter Description
Item The String to search for.
MatchCase Specifies whether the search is case sensitive.

Return Type

Integer. The zero-based index of the first item found; returns -1 if no match is found.