XL2000: How to Remove All Items from a ListBox or ComboBox (213721)
The information in this article applies to:
This article was previously published under Q213721 SUMMARY
There is no single method that you can use to remove all items from a
ListBox or ComboBox control on a UserForm. The method that you use to remove an item depends on whether the ListBox or ComboBox control is bound to a worksheet. This article contains examples that remove items from a sample control that is bound to a worksheet and a sample control that is not bound to a worksheet.
REFERENCESFor more information about using the ListBox control, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type listbox control in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about using the RowSource property, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type rowsource property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about using the RemoveItem method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type removeitem method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming kbui KB213721 |
---|
|