+ Reply to Thread
Results 1 to 3 of 3

VBA ColumnHeads Property for ComboBox

  1. #1
    VBA Dabbler
    Guest

    VBA ColumnHeads Property for ComboBox

    Does anyone know how to make the 'ColumnHeads' appear in a ComboBox?

    I have set the property with:

    frmFormName.ComboBoxName.ColumnHeads = True

    The heading row appears but no text is in it.

  2. #2
    Rob Bovey
    Guest

    Re: VBA ColumnHeads Property for ComboBox

    "VBA Dabbler" <[email protected]> wrote in message
    news:[email protected]...
    > Does anyone know how to make the 'ColumnHeads' appear in a ComboBox?
    > I have set the property with:
    > frmFormName.ComboBoxName.ColumnHeads = True
    > The heading row appears but no text is in it.


    Column heads only work when the RowSource property of your ComboBox is
    set to a range on a worksheet. In that case the row values in the row
    directly above the row source range will be used as the column head(s).

    --
    Rob Bovey, Excel MVP
    Application Professionals
    http://www.appspro.com/

    * Take your Excel development skills to the next level.
    * Professional Excel Development
    http://www.appspro.com/Books/Books.htm



  3. #3
    VBA Dabbler
    Guest

    Re: VBA ColumnHeads Property for ComboBox

    Thanks for the feedback. I never saw in Microsoft's documentation where that
    functionality was restricted to use of the RowSource property. It would be
    nice if they would publish it.

    Regards,
    VBA Dabbler

    "Rob Bovey" wrote:

    > "VBA Dabbler" <[email protected]> wrote in message
    > news:[email protected]...
    > > Does anyone know how to make the 'ColumnHeads' appear in a ComboBox?
    > > I have set the property with:
    > > frmFormName.ComboBoxName.ColumnHeads = True
    > > The heading row appears but no text is in it.

    >
    > Column heads only work when the RowSource property of your ComboBox is
    > set to a range on a worksheet. In that case the row values in the row
    > directly above the row source range will be used as the column head(s).
    >
    > --
    > Rob Bovey, Excel MVP
    > Application Professionals
    > http://www.appspro.com/
    >
    > * Take your Excel development skills to the next level.
    > * Professional Excel Development
    > http://www.appspro.com/Books/Books.htm
    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1