List Box Items

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I am trying to create a list box that is populated with
items from a row. For example: A2=red B2=blue C2=green.
then the first value in the combobox is red, the second is
blue, the third is green and so on.
 
Set the Input Range (if a Forms Listbox) the RowSource property (Controls
listbox), or the ListFillRange (Userform listbox) to that range address.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
try this:
sub addMe()
sheets("Sheet1").select
Range("A2").select
do
set a=selection
with listBox1
..additem (a)
end with
activecell.offset(0,1).select
loop until a=""
end sub

This is quick and dirty and may add a blank line to the
bottom of the listbox.

regards
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top