Results 1 to 5 of 5

Thread: Userform Listbox Row Source

  1. #1
    Board Regular
    Join Date
    Apr 2012
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Userform Listbox Row Source

    Hi all

    I have a table displaying in my userform listbox I have set the rowsource to the table name (dossier) but it does not show the table headers, is there a way I can do this?

    This is the line of code:
    Code:
    UserForm1.lstdisplay.RowSource = "Dossier"
    Also if I get this to display will it remain fixed at the top of the listbox as the user scrolls down?

    Many Thanks for any help

  2. #2
    MrExcel MVP
    Moderator
    RoryA's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    33,818
    Post Thanks / Like
    Mentioned
    48 Post(s)
    Tagged
    6 Thread(s)

    Default Re: Userform Listbox Row Source

    Set the columnheads property to true, then the headers will appear (and will be real headers).

  3. #3
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,306
    Post Thanks / Like
    Mentioned
    471 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Userform Listbox Row Source

    Have you set the "ColumnHeads" property to true?
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  4. #4
    Board Regular
    Join Date
    Apr 2012
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Userform Listbox Row Source

    Awesome, thanks so much that works great!

  5. #5
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,306
    Post Thanks / Like
    Mentioned
    471 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Userform Listbox Row Source

    Glad we could help & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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