Listbox Column Header as Excel Column header name

Senthil Murugan

Board Regular
Joined
Sep 25, 2024
Messages
50
Office Version
  1. 365
Platform
  1. Windows
Good Morning everybody

Could anyone help me to get the answer ( code ) for the following

I need ListBox1 Header as Actual Excel Column header as A, B, C till the used column data in First Row
and
Rowsource is 1st row data

Please see my image attached

with regards


A.Senthil Murugan
 

Attachments

  • ListBox Header.jpg
    ListBox Header.jpg
    16.1 KB · Views: 12

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You can simply set the Column Heads property to True if you don't mind that including the word "Column" as well. See listbox property sheet, Data section.
EDIT - that applies if you've set the rowsource property as beginning with the first row. If not, the header values will be whatever is in the row above the top row of the rowsource. In that case, you should be able to put A, B, C etc. in the first row above the rowsource topmost row.
 
Upvote 0

Forum statistics

Threads
1,225,750
Messages
6,186,808
Members
453,373
Latest member
Ereha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top