|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
excel Macro Combobox
Hi, ive a this excel worksheet that contain data and another worksheet that has the user interface...now i would like to create a combobox that contains the list of data from the data worksheet and am wondering how to do that....pls help. Thanx
|
|
#2
|
|||
|
|||
|
Highlight the data you would like in your combobox, then in the 'Name Box' (top left of your screen) type in a name for your list of data, for example 'list'.
Go to your input sheet, right click on your combo box and in Format control click on the control tab. In input range type =list and hey presto. Hope that helped. |
|
#3
|
|||
|
|||
|
format control
ive tried that but the problem is in the format control window there is no control tab...any other options?
|
|
#4
|
|||
|
|||
|
The approach to use depends on which combobox you've used - is it the one from the control toolbox toolbar or the one from the forms toolbar?
I think the approach above works for the forms toolbar one. For the control toolbox one you need to right click, view properties and set the listFillRange property to your list as above |
|
#5
|
|||
|
|||
|
You could use the Excel Validation Option instead.
Instead of using a combo box, select a cell and go to Data > Validation. Select Allow 'List' and set your source to be =list (or whatever you labelled your range as). Is this acceptable? |
|
#6
|
|||
|
|||
|
ok...but
ok..ive tried that and it works but unless the list is in the same sheet rite but in my case the list is in a different sheet, so how to do the fill range?
|
|
#7
|
|||
|
|||
|
yoan write a piece of code to fill / refresh the list in the worksheet's activate event
do you need help with that? btw, the items don't need to be on the same sheet on my excel... for either type of combo box Last edited by epl : May 30th, 2003 at 04:23 AM. |
|
#8
|
|||
|
|||
|
yes
yup, i need help with that, hope u could show me how to do it
![]() |
|
#9
|
|||
|
|||
|
Maya,
This may work: On the ListFillRange type Sheet2!A1:A4 Sheet2! (Change Sheet2 to your worksheet's name followed by the exclamation mark... and change the A1:A4 to the cells range were your values are for the combobox) Hope this help |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > excel Macro Combobox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|