RemoveItem method (Microsoft Forms)
Removes a row from the list in a list box or combo box.
Syntax
Boolean = object. RemoveItemindex
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).
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.