Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Problems of list box property

Dear all,

I have 4 columns in a list box, in the listbox property I can only set one column width. How can I
set, say, column 1 column width=50, column 2=30, column 3=40 and column=100?

Also, I have set headers=true in listbox property. However, it only shows a blank row in in first
row. How can I add the title to the headers of the list?

Thank you in advance!



--



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Problems of list box property

You can set the column widths in the Properties window or at run time like
this:

ListBox1.ColumnWidths = "25;50;10"

I believe you can only show headers if you populate the listbox from the
worksheet via the RowSource property. And do not include the header row in
the LinkSource range.

So with headers in A1:D1 and data in A2:D10 use this in Linksource: A2:D10

--
Jim
"*¡¸ My-Ricky ¡¸*" wrote in message
...
| Dear all,
|
| I have 4 columns in a list box, in the listbox property I can only set one
column width. How can I
| set, say, column 1 column width=50, column 2=30, column 3=40 and
column=100?
|
| Also, I have set headers=true in listbox property. However, it only shows
a blank row in in first
| row. How can I add the title to the headers of the list?
|
| Thank you in advance!
|
|
|
| --
|
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Problems of list box property

Thank you very much for your precious solutions and quick response. It works! ^_^


"Jim Rech" bl...
You can set the column widths in the Properties window or at run time like
this:

ListBox1.ColumnWidths = "25;50;10"

I believe you can only show headers if you populate the listbox from the
worksheet via the RowSource property. And do not include the header row in
the LinkSource range.

So with headers in A1:D1 and data in A2:D10 use this in Linksource: A2:D10

--
Jim
"*¡¸ My-Ricky ¡¸*" wrote in message
...
| Dear all,
|
| I have 4 columns in a list box, in the listbox property I can only set one
column width. How can I
| set, say, column 1 column width=50, column 2=30, column 3=40 and
column=100?
|
| Also, I have set headers=true in listbox property. However, it only shows
a blank row in in first
| row. How can I add the title to the headers of the list?
|
| Thank you in advance!
|
|
|
| --
|
|
|




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
Runtime Error 380 – Could not set the list property. Invalid property value BernzG[_16_] Excel Programming 2 August 21st 05 10:10 PM
need VB list property for file contents kwilson Excel Programming 5 May 16th 05 01:33 PM
Problems sorting from VB when some rows include Borders property [email protected] Excel Programming 0 April 28th 05 11:24 PM
Combobox List - Which Property teresa Excel Programming 4 April 5th 05 05:05 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM


All times are GMT +1. The time now is 05:11 AM.

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"