Solved

Can I Format Column Headings in Listbox on Excel User Form?

Posted on 2011-03-10
6
908 Views
Last Modified: 2012-08-13
I have a lsit box on a user form which has the row source set to a range in a worksheet. No problem getting the column headings to appera, but I want to know if it is possible to format the column headings as they are small and don't stand out enough. I have used labels above the list box, but if there is a lot of data in the columns then the box may scroll to the right which will obviously take the columns out of alingment with the labels. I suspect this may not be possible, but can I make the headings bold or change the colour?
0
Comment
Question by:Karl_mark
6 Comments
 
LVL 19

Assisted Solution

by:akoster
akoster earned 166 total points
Comment Utility
Sure,

when you go to the userform in the vba editor and select the listbox, you can edit  the properties.

to make the list contents bold : click on the font entry in the properties window, press the button with the "..." on it.
Now select appropriate font and bold conditions.

The colour can be changed using the "ForeColor" property
0
 
LVL 85

Assisted Solution

by:Rory Archibald
Rory Archibald earned 166 total points
Comment Utility
No - you can't change just the headers. The best you get is the dividing line.
0
 
LVL 8

Accepted Solution

by:
2toria earned 168 total points
Comment Utility
You would probably be better off using a ListView Control, which gives you a lot more flexibility in  presenting your data.  Listview controls don't allow customisation of the headers without API calls, but they do stand out more than they do in the Listbox control.

It does require some VBA experience to populate a Listview, but in terms of flexibility and customisation I'd say it's well worth learning how to use.

HTH,
Matt
0
 

Author Comment

by:Karl_mark
Comment Utility
Thanks guys. I don't have time to change it to ListView right now, but may take a look once I get this finished.
0
 
LVL 24

Expert Comment

by:broomee9
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

771 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

13 Experts available now in Live!

Get 1:1 Help Now