ComboBox and 2 Dim array

  • Thread starter Thread starter Dave Taylor
  • Start date Start date
D

Dave Taylor

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
 
There's a .columnwidths property you can change:

me.combobox1.columnwidths = "0 pt;15 pt"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top