Google Answers Logo
View Question
 
Q: EXCEL - Combo Box functionality ( No Answer,   2 Comments )
Question  
Subject: EXCEL - Combo Box functionality
Category: Computers > Programming
Asked by: jimelliott-ga
List Price: $40.00
Posted: 05 May 2005 19:07 PDT
Expires: 04 Jun 2005 19:07 PDT
Question ID: 518310
Win 2000
Office 2003

Regarding XCEL ? the ?forms? Combo Box functionality and the ?control
toolbox? Combo Box functionality.

I want the user to select from a list of choices and save their
selection to a cell by its ordinal number (if they choose the fifth
listing, the number 5 will be stored in the ?Cell Link? defined cell.
? This works fine but with on indirect problem, I can?t change the
font displayed in the Combo Box ?window?

I then tried using the Control Toolbox functionality.  I can still
present the user with the list of choices and now am able to modify
the font characteristics within the Combo Box ?window? but the Linked
Cell result is no longer the ordinal number within the list range, but
is the actual contents of the selected item ? I need its ?number?

Is there a solution??

Thanks much!!

Jim

Request for Question Clarification by hummer-ga on 06 May 2005 07:36 PDT
Hi jimelliott,

Try this:

Make your Combo Box as in your first explanation. Now right-click on
the box and select "Properties". Select "Font", and choose from the
drop-down menu.

Please let me know if that solves it for you!
hummer

Clarification of Question by jimelliott-ga on 06 May 2005 11:19 PDT
As mentioned in my origfinal question, I am able to moify the font
using the Control Toolbox process but I loose the ordinal choice
indictor in the LinkCell displayed cell.  Perhaps a better way to
restate the question is - How can I use the Control Toolbox feature
and be able t display the ordinal number for the item the user has
selelcted from the range of cells defined by the ListFillRange
attribute?

Request for Question Clarification by hummer-ga on 06 May 2005 14:10 PDT
Hi jimelliott,

Either way should work using "Properties" as I explained earlier. Get
your Combo Box working, either with the correct font but no ordinal
number, or, with the ordinal number but incorrect font. Then, right
click on the combo box and select "Properties". Look for and select
whichever attribute needs fixing. Either adjust the font or look for
the "LinkedCell" and "ListFillRange" fields (which should be the same
as what is on the "Control" tab) in the box that pops up.

I hope that helps!
hummer

Clarification of Question by jimelliott-ga on 06 May 2005 15:15 PDT
Hummer -

I appologize for not being clear on this problem.  The two solutions
have mutually exclusive characteristcs.  If I use the "form" feature I
can have the ordinal listing attribute but no font choices (the "form"
feature does not display a properties choice in the right click menue
listing, only "cut,copy,paste,grouping,order,assign macro,format
control"; and "format control" does not provide for font adjustments.

The Control Toolbox feature provides for font adjustment, but I do not
see how to get the ordinal number property to work based on the user's
selected item.

i.e. I need both font control and ordinal number capture.

Thanks for you patience
Answer  
There is no answer at this time.

Comments  
Subject: Re: EXCEL - Combo Box functionality
From: pianoboy77-ga on 09 May 2005 12:13 PDT
 
You can accomplish what you want fairly simply, however it requires 2
columns of data for your list -- one with the text items and one with
the ordinals. Hopefully that requirement doesn't affect you too much.
Here are the steps:

1) Insert a combobox from the Control Toolbox (View menu --> Toolbars
--> Control ToolBox); i.e. Don't use the Forms toolbar.

2) Define your list of text items to use in the list in one column,
and then in the column adjacent to it on the right, define the
ordinals. For example, cells A1 to A5 might contain my 5 item names
and cells B1 to B5 would then contain the numbers 1, 2, 3, 4, 5.

3) right-click the combox and click "Properties..."

4) Set the "ListFillRange" property to the full cell range containing
BOTH the text list and the ordinals. Using my example from step 2, the
range I would type here would be A1:B5

5) Set the "LinkedCell" property to the cell where you want the
selected value (ordinal) to be displayed.

6) Change the "BoundColumn" property from 1 to 2. This tells Excel the
data you're binding to is from the 2nd column, which contains the
ordinals. In other words, the value that will be displayed in the
'LinkedCell' cell will be from the 2nd column.

7) Change the "TextColumn" property to 1. You don't really need to do
this, but this identifies the 'Text' property value, just as
"BoundColumn" identifies the 'Value' property value.

8) As you know, you can set your font information through the "Font"
property. You can set other appearance information too -- click the
"Categorized" tab and play with the properties under the "Appearance"
category.

Notes:
a) notice that we leave the "ColumnCount" property set to 1. If we set
it to 2, both the text and ordinals would display on each row in the
combobox list. With it set to 1, it still seems to recognize the whole
data set due to the "ListFillRange" property, it just will only
display the first column. The other alternative is to set the
"ColumnCount" property to 2 and then in the "ColumnWidths" property,
type "50,0" (which it will change to something like "49.95 pt; 0 pt".
The zero effectively hides the 2nd column (ordinals) while the 1st
column will be 50pt wide. You would have to use this approach if you
had your text and ordinal columns reversed so that you could specify
to only show the 2nd column.

Search Strategy:  Just played with the Combobox settings in excel.
Looked up some of the specific property descriptions by googling for
property name + 'property' + 'excel', e.g.  LinkedCell  property  
Excel

Hope this helps.
Subject: Re: EXCEL - Combo Box functionality
From: jimelliott-ga on 10 May 2005 16:21 PDT
 
pianoboy77 -

Your guidance will get me what I need to acomplish.  Thanks!

About two weeks ago my skill level was using cell data validation
to guide the user. This is a much better solution.

Is there a quintessential Excel reference manual that explains each and
every attribute of, for instance, a ComboBox feature/charcteristic (or any 
and all Excel attributes)

Thanks again for your help!!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy