View Single Post
  #2  
Old February 16th, 2004, 09:06 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default How do you create a list in a Combo or List Box?

Arthur,

Do you want a VBA solution, or Excel? I ask as you mention Powerpoint. In
VBA you can additem, in Excel, it is best to set your items in a worksheet
range, and link to that. I'll describe the latter,

Activate the Control toolbox toolbar
Go into control.design mode (click the blue-green triangle icon)
Click and drag a listbox (combobox) onto the worksheet
Click the properties icon (finger pointing at a worksheet)
Set the ListfFillRange property to the worksheet range (e.g. A1:A20)
Exit design mode

To create code behind it, go back into design mode, and double-click the
control. A click event procedure is set-up for you, just add your code.
Don't forget to exit design mode again.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Arthur " wrote in message
...
thanks, Bob!

I know this is the wrong forum, but I do have a followup question
(because my post in the PowerPoint forum is being ignored). How do I
make a controll toolbox drop-down list using either a Combo Box or List
Box? I still can't seem to get more than one entry in the list.

thanks again!


---
Message posted from http://www.ExcelForum.com/