RemoveAllItems Method

Applies To

DrawingObjects Collection, DropDown Object, DropDowns Collection, ListBox Object, ListBoxes Collection.

Description

Removes all entries from a list box or drop-down list box.

Syntax

object.RemoveAllItems

object

Required. The object to which this method applies.

See Also

AddItem Method, List Property, RemoveItem Method.

Example

This example removes all entries from list box one on Dialog1.


DialogSheets("Dialog1").Listboxes(1).RemoveAllItems