Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Headings for Multi Column Listbox

Posted on 2014-02-20
6
235 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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