Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default columnshead with listbox

Hi

I want to fill some data in a Listbox throug listbox.column() = array.
It works fine, but vba does not recognise, that it should take the first
row from the array as columnheads. I switched the columnheads property
on by code, but there was no difference.
Does anybody know how to fill in the columnheads manually?

greez and thx
masterphilch
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default columnshead with listbox


as far as i remember
columnsheads works only for ranges ..
and then shows the row ABOVE the rowsource.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


masterphilch wrote :

Hi

I want to fill some data in a Listbox throug listbox.column() =
array. It works fine, but vba does not recognise, that it should take
the first row from the array as columnheads. I switched the
columnheads property on by code, but there was no difference. Does
anybody know how to fill in the columnheads manually?

greez and thx
masterphilch

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default columnshead with listbox

You do not include the headings in the array, and you set the Rowsource
property. So if the data is in A1:C10, and row 1 is headings, set
ColumnCount, set ColumnHeadings, and set RowSource to A2:C10.

--
HTH

Bob Phillips

"masterphilch" wrote in message
...
Hi

I want to fill some data in a Listbox throug listbox.column() = array.
It works fine, but vba does not recognise, that it should take the first
row from the array as columnheads. I switched the columnheads property
on by code, but there was no difference.
Does anybody know how to fill in the columnheads manually?

greez and thx
masterphilch



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
listbox B conditional of input in Listbox A Kim K Excel Discussion (Misc queries) 1 October 31st 06 08:27 PM
Multicolumn Listbox and ordinary listbox Ron_D Excel Programming 0 June 4th 04 08:56 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
Sorting ListBox results or transposing ListBox values to other cells for sorting Rob[_8_] Excel Programming 1 July 9th 03 04:35 AM


All times are GMT +1. The time now is 01:55 AM.

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"