![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 38
|
I have a combo box that has blank lines on the drop-down list. I need to know if there is a way to hide these
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Is your combobox linked directly to the worksheet ? how about creating a dynamic range that adjustes itself and uses only filled cells ?
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 38
|
the combo box is linked to another sheet in the same workbook. Can u tel me how create a dynamic range. i dont have a cule how to do it.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
What is the range your list refers to?
In which sheet. This is one way you could do this. Set the combobox's ListFillRange in the worksheet's activate event. This way, everytime you activate this sheet, the combobox list would be refreshed. If the blanks are at the bottom of your list, then this will work as is. If your blanks are intermittently placed then you will need to sort the range or transpose it without the blanks to another list. Tom |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
then INSERT|NAME|DEFINE then in Names_in_Workbook box put ListDynRng and in Refers_to box put =OFFSET($A$11,0,0,MATCH("zzz",A11:A65536),1) then OK Now click on Combo box then in the CONTROL tab in the Input_range box put ListDynRng in Cell_Link box ... put your cell ref then OK Now you have a combobox that houses the List with Dynamic range Please post back if it works for you ... otherwise explain a little further and let us take it from there. Regards!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|