troubleshooting Question

Excel 2003: populating column headers without using worksheets or Rowsource

Avatar of ouestque
ouestqueFlag for United States of America asked on
Microsoft Excel
1 Comment1 Solution1919 ViewsLast Modified:
How do I change column headers on an Excel 2003 listbox using JUST VBA. Not using worksheets or the listbox rowsource.

(I could assign a name to some data on a worksheet, then assign the rowsource of the listbox = the name. At which point the column headers will be the first row.)  Nonetheless, I would like to populate the column headers using strictly VBA.

i.e. I have tried the following which does not work.

me.listbox.columnheaders(1) = "Students" (Doesn't assign "Students" as the first column header.)


I have attached a sample Excel file another Experts - Exchange specialist helped me with. This file populates a listbox using VBA when the user presses "Refresh". Nonetheless, the first row of data does not show in the column header when using VBA to populate the listbox. (Maybe a way to change VBA to do this?)

Experts-Exchange-Example.xls
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros