A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do you create a list in a Combo or List Box?



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2004, 09:00 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default How do you create a list in a Combo or List Box?

What are we talking about, a userform, control toolbox, or worksheet forms?

Put the data in a worksheet range and link with
- userform - Rowsource property
- control toolbox - ListFillRange
- worksheet form - Input Range on Control Tab of Form, properties.

--

HTH

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

"Arthur " wrote in message
...
I'm trying to create a drop-down list in Excel, but I can't seem to fill
out more than one row of information in either a Combo Box or List Box.
Could someone tell me how to create an actual - list - for both of
these control boxes?

thanks!!


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



  #2  
Old February 16th, 2004, 10: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/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.