AddItem Method

Adds a new item to a ComboBox control, optionally allowing you to specify the item's index.

Syntax

Public Sub AddItem(ByVal Item As String, Optional ByVal Index As Integer = -1)

Applies To

ComboBox Object

Parameters

The following parameters are available:

Parameter Description
Item Specifies the string expression to add to the control.
Index Specifies the position where the item is placed in the control.

Return Type

None