Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
additem to combobox with an array jocke Excel Discussion (Misc queries) 2 September 29th 05 07:56 PM
Populating combobox from another combobox David Goodall Excel Programming 1 September 12th 04 03:42 PM
Combobox array Lawlera Excel Programming 1 January 19th 04 07:06 PM
ComboBox Name array Stacy Excel Programming 1 July 25th 03 04:07 PM


All times are GMT +1. The time now is 02:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"