Solved

Headings for Multi Column Listbox

Posted on 2014-02-20
6
229 Views
Last Modified: 2014-02-22
I have a multicolumn list box in Excel 2010. I can populate its 5 columns but I cannot see how to add headings for each column.

I have set ColumnHeads=TRUE.

Any ideas please?
0
Comment
Question by:NormanMitchell
  • 3
  • 2
6 Comments
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39874203
ignore me - sorry.
0
 
LVL 33

Expert Comment

by:Norie
ID: 39874210
How have you populated the listbox?

You can only have headings if yo've populated it from a range.

If you populated it any other way, eg AddItem, List etc,  no headings I'm afraid.
0
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 39874223
You could add labels above the columns or use a ListView control instead.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 33

Expert Comment

by:Norie
ID: 39874760
Or you could add a small one row listbox above the existing listbox.

This listbox would contain the headers and would have the same column widths as the existing listbox.

A wee bit easier than trying to line up labels to columns.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39875009
Or you could add a small one row listbox above the existing listbox.
Good idea.
0
 

Author Closing Comment

by:NormanMitchell
ID: 39878939
Shame Microsoft (or the authors of VBA can't provide a simple solution. But yours stirred up my brain to find ways round. Many thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert publisher file to an outlook email template 8 34
Vb.net dynamic formulas in runtime 11 61
COPY from excel to notepad 3 32
Help with Excel formula 6 31
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now