Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to add data to ColumnHeads of Listbox


Dear all,

I created a listbox in Excel and load data from Access file but I don't
know how to add data to columnheads of that listbox.

Could any one can help me.

Thanks a lot.

Nam


--
lehainam
------------------------------------------------------------------------
lehainam's Profile: http://www.excelforum.com/member.php...o&userid=18615
View this thread: http://www.excelforum.com/showthread...hreadid=376216

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default How to add data to ColumnHeads of Listbox

I assume this is a Controls listbox, not Forms (since I don't think you can
set column headers in Forms listbox). Do you put your Access data onto your
worksheet first, or are you creating your listbox strictly from code? If you
put it into a range on your sheet, the Controls listbox should automatically
choose the cells above your .ListFillRange as the column headers if you
specify .ColumnHeads=True. But I don't see any way other than this to
specify the column headers (I know in an Access form you can use the
RowSourceType and RowSource to specify headings).

A trick I have used at times is to place textboxes above a listbox, and use
them for the headers. Not as elegant, but it works!

"lehainam" wrote:


Dear all,

I created a listbox in Excel and load data from Access file but I don't
know how to add data to columnheads of that listbox.

Could any one can help me.

Thanks a lot.

Nam


--
lehainam
------------------------------------------------------------------------
lehainam's Profile: http://www.excelforum.com/member.php...o&userid=18615
View this thread: http://www.excelforum.com/showthread...hreadid=376216


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
VBA ColumnHeads Property for ComboBox VBA Dabbler[_2_] Excel Programming 2 February 28th 05 06:55 PM
ListBox.ColumnHeads Property Kevin Excel Programming 4 July 16th 04 10:55 AM
Listbox ColumnHeads Dave Baranas[_2_] Excel Programming 6 December 8th 03 10:13 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
ListBox ColumnHeads Soniya Excel Programming 1 October 7th 03 12:50 PM


All times are GMT +1. The time now is 12:12 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"