Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXCEL - Problem with adding text/data to listbox from VB.

Status
Not open for further replies.

chrisdq

Programmer
Joined
Nov 6, 2002
Messages
77
Location
US
EXCEL Could someone show me how to add text/Data to a listbox from VB?? THANKS.
 
Something like this:
Code:
Private Sub CommandButton1_Click()
  ListBox1.Clear
  ListBox1.AddItem "This is data"
  ListBox1.AddItem "so is this"
  ListBox1.AddItem "This too"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top