Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

RemoveAllitem

Forumthread: RemoveAllitem

RemoveAllitem
07.11.2002 09:07:12
Folker
Wie kann ich alle Einträge aus einer Komboboxliste löschen, die ich mit additem hinzugefügt habe? combobox1.removeAllitems funktioniert nicht.
Anzeige

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
Re: RemoveAllitem
07.11.2002 09:24:39
Sebastian Müller
Hallo, schau mal ob das geht:

For i = 0 To ComboBox1.ListCount - 1
If ComboBox1.ListIndex = -1 Then
ComboBox1.ListIndex = ComboBox1.ListCount - 1
End If
ComboBox1.RemoveItem (ComboBox1.ListIndex)
Next


GRuß,

Sebastian

Re: RemoveAllitem
07.11.2002 10:23:42
Folker
Ok geht Danke.
Anzeige
;

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige