Article ID: 182696
Article Last Modified on 10/10/2006
A1: Alpha
A2: Bravo
A3: Charlie
A4: Delta
A5: Echo
Private Sub UserForm_Initialize()
' Populate the ListBox.
ListBox1.List = Worksheets("Sheet1").Range("A1:A5").Value
End Sub
This procedure populates ListBox1 when the UserForm is loaded.
Private Sub CommandButton1_Click()
Dim i As Integer
For i = 1 To ListBox1.ListCount
'Remove an item from the ListBox.
ListBox1.RemoveItem 0
Next i
End Sub
This Visual Basic procedure removes all of the items from ListBox1.
179216 OFF98: How to Use the Microsoft Office Installer Program
Additional query words: XL98
Keywords: kbdtacode kbhowto kbprogramming KB182696