#1   Report Post  
FSt1
 
Posts: n/a
Default Combobox/listbox

happy new year to all,
I have a problem with combo boxes/list boxes.
I can get the list fill range to display data in a column
such as D2:D5 but i can't get the list fill range to
display data in a row such as D2:G2. when i set the list
fill range to D2:G2, all the combo/list box displays is
the data in D2. Is there a way to get the combo/list box
to display data in a row.
any help would be appreciated.
thanks in advance.
FSt1
  #2   Report Post  
Andy Brown
 
Posts: n/a
Default

Is there a way to get the combo/list box
to display data in a row.


Assuming you've set ColumnCount to 4, try setting ColumnWidths. The default
width for Column1 may exceed the width of the listbox, already.

HTH,
Andy


  #3   Report Post  
 
Posts: n/a
Default

thanks andy but that didn't work like i wanted.
I want the row info to appear in the box in column format.
but i do appreciate the responce.
thanks again.
FSt1
-----Original Message-----
Is there a way to get the combo/list box
to display data in a row.


Assuming you've set ColumnCount to 4, try setting

ColumnWidths. The default
width for Column1 may exceed the width of the listbox,

already.

HTH,
Andy


.

  #4   Report Post  
Andy Brown
 
Posts: n/a
Default

I want the row info to appear in the box in column format.

You want the data from a horizontal range in the worksheet to populate a
single column? Try AddItem in the Initialize event of the form, eg:

Private Sub UserForm_Initialize()
ListBox1.AddItem Range("Sheet1!D2")
ListBox1.AddItem Range("Sheet1!E2")
ListBox1.AddItem Range("Sheet1!F2")
ListBox1.AddItem Range("Sheet1!G2")
End Sub

HTH,
Andy


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



All times are GMT +1. The time now is 09:21 PM.

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

About Us

"It's about Microsoft Excel"