Get Header Name of COMBO

danial

Board Regular
Joined
Apr 29, 2006
Messages
107
I have a form with a combo box on it that lists report conditions. I have a report name, their configuration value and ... in this combo box that pulls from a table. I want to creat code to get header name of this combo box and a value of column 1,2,3 ...
Firstly I was created code to get value of column 1,2,3... but I can't get the column name(header name)
(in the combo box properties, I set Column Header property is false)

What is a way to do this??

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You can get the RowSource for the Combo box which is the SQL used to get the fields (columns) from the table or tables to populate the data in the dropdown part of the combo box. The field (column) names are available in that SQL.
 
Upvote 0
Thank a lot.
I try by myself with code
show header before
and get header name form "combo.column(N,0) & combo.column(N)"
after that set header visible false

It work for me but not sure it's normal way to header name
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,841
Members
449,051
Latest member
excelquestion515

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