Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dear Friends When we select a range for combobox. The Selected range shows every row in the combobox, either there is data in a row or not. How can we show only filled data rows in a range for ComboBox. sub userForm_activate comboBox1.column count = 1 ComboBox1.Rowsource= "a1:a1000" End sub -- Syed Haider Ali ------------------------------------------------------------------------ Syed Haider Ali's Profile: http://www.excelforum.com/member.php...o&userid=21994 View this thread: http://www.excelforum.com/showthread...hreadid=469979 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way is to determine the range dynamically:
ComboBox1.RowSource = Range("A1", Range("A1").End(xlDown)).Address This assumes at least two items in the list. -- Jim "Syed Haider Ali" <Syed.Haider.Ali.1vry2h_1127415944.9738@excelfor um-nospam.com wrote in message news:Syed.Haider.Ali.1vry2h_1127415944.9738@excelf orum-nospam.com... | | Dear Friends | | When we select a range for combobox. The Selected range shows every row | in the combobox, either there is data in a row or not. How can we show | only filled data rows in a range for ComboBox. | | sub userForm_activate | | comboBox1.column count = 1 | ComboBox1.Rowsource= "a1:a1000" | | End sub | | | -- | Syed Haider Ali | ------------------------------------------------------------------------ | Syed Haider Ali's Profile: http://www.excelforum.com/member.php...o&userid=21994 | View this thread: http://www.excelforum.com/showthread...hreadid=469979 | |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks Jim Rech. It is working properly -- Syed Haider Ali ------------------------------------------------------------------------ Syed Haider Ali's Profile: http://www.excelforum.com/member.php...o&userid=21994 View this thread: http://www.excelforum.com/showthread...hreadid=469979 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
How Do I Load A ComboBox RowSource From The Results Of Another ComboBox | Excel Programming | |||
Populating combobox from another combobox | Excel Programming | |||
Combobox | Excel Programming | |||
Combobox | Excel Programming |