In Excel there are 2 kinds of controls that you can place on a worksheet: Forms & Control Toolbox.
Forms controls are easier to use but have fewer properties that you can comtrol -- easier to use because you may not need any code to do what you want to do.
Control Toolbox controls need VB code for any event.
Right click on the Excel toolbar and select either Forms or Control Toolbox.
Both controls will take a range in
[tt]
Input Range
ListFillRange
[/tt]
I like to use Named Ranges -- How can I rename a table as it changes size faq68-1331
There is a difference in determining the result.
In a Forms combo, you get the List
Index value in the Linked Cell. You'll need to lookup the string value using =INDEX(YourList,LinkedCell,1)
In the Control Toolbox combo, the Combobox1_Click event can be used to determine the value selected
Code:
Private Sub ComboBox1_Click()
msgBox ComboBox1.Value
End Sub
Skip,
[red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should...
Never hatchet your Counts before they chicken! ![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)