×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Combo Box Header

Combo Box Header

Combo Box Header

(OP)
In VBA, a regular ole Combo Box control has a ColumnHeads property to display Column Headers (if you make it true).

Is there a way to put the text in the header? If you make this property true, it puts a blank row (no text) in there at the top.

RE: Combo Box Header

If the listfill range is A2:A10 then A1 will be the column header.

RE: Combo Box Header

(OP)
Sorry, forgot to mention I wasn't "binding" the combo box data to anything in particular. It is more or less filled in insode the code, using AddItem.

So no Excel data to use. Does it have to get its data from "a table", to use the ColumnHeads property?

RE: Combo Box Header

Yes.  Either Excel or a database.

RE: Combo Box Header

(OP)
Thanks. That is about what I had figured. Of course, it stinks, but it figures winky smile

RE: Combo Box Header

So, have the VBA create an invisible Excel spreadsheet to store headers. If this seems like a waste of resources for something as mundane as a header then use the sheet as an array variable as well (it comes pre dimensioned to 255 x 65536, three dimensional if you add extra worksheets), information stored on the sheet can be persistent from day to day.

The situation doesn't have to stink.

(Or change "invisible Excel spreadsheet" to "database" if you are more comfortable with databases)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources