Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
ComboBox and 2 Dim array
Hi all, new to this forum Question I can set up a 2 dimensional array by using array = Workbooks("Workbook.xls").Worksheets("Data").Range ("D_all") where range "D-all" contains 2 columns and 20 rows I can send that list to a combo box by using Me.ComboBox1.List() = array If I have ColumnCount set to 2 then both columns will be listed If I have ColumnCount set to 1 then the 1st column will be listed But how do I list just the second column. Regards, Dav -- Dave Taylo ----------------------------------------------------------------------- Dave Taylor's Profile: http://www.excelforum.com/member.php...fo&userid=1513 View this thread: http://www.excelforum.com/showthread.php?threadid=26770 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
ComboBox and 2 Dim array
There's a .columnwidths property you can change:
me.combobox1.columnwidths = "0 pt;15 pt" Dave Taylor wrote: Hi all, new to this forum Question I can set up a 2 dimensional array by using array = Workbooks("Workbook.xls").Worksheets("Data").Range ("D_all") where range "D-all" contains 2 columns and 20 rows I can send that list to a combo box by using Me.ComboBox1.List() = array If I have ColumnCount set to 2 then both columns will be listed If I have ColumnCount set to 1 then the 1st column will be listed But how do I list just the second column. Regards, Dave -- Dave Taylor ------------------------------------------------------------------------ Dave Taylor's Profile: http://www.excelforum.com/member.php...o&userid=15137 View this thread: http://www.excelforum.com/showthread...hreadid=267707 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
additem to combobox with an array | Excel Discussion (Misc queries) | |||
Populating combobox from another combobox | Excel Programming | |||
Combobox array | Excel Programming | |||
ComboBox Name array | Excel Programming |