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.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för