RemoveItem Method

RemoveItem Method

See Also         Example         Applies To        

Removes a row from the list in a list box or combo box.

Syntax

Boolean = object.RemoveItem( index)

The RemoveItem method syntax has these parts:

Part Description
object Required. A valid object.
index Required. Specifies the row to delete. The number of the first row is 0; the number of the second row is 1, and so on.

This method will not remove a row from the list if the ListBox is data bound (that is, when the RowSource property specifies a data source for the ListBox).