View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default AddItem with multi-column listBox

Listbox1.AddItem "dog"
Listbox1.List(Listbox1.Listcount-1,1) = "cat"

--
Regards,
Tom Ogilvy


"David" wrote in message
...
Greetings everyone
I'm trying to learn something about list boxes. I have suceeded with

loading
a 2 column listBox with a 2 dimensional array but would be interested to

know
how to use AddItem. Let's say I just want to load "dog" and "cat" into the
first row of a 2 column list box using AddItem without building an array
first. Please give me some example code
TIA