+ Reply to Thread
Results 1 to 6 of 6

Adding sheet names to listview

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    4

    Adding sheet names to listview

    Here's my code:
    Please Login or Register  to view this content.
    Picture of the output:
    listview.png

    I know it's going to be something stupid but I've been stuck on this for too long now. How do I populate the listview so it adds items to the next row instead of the column beside it? I've been playing around with the listview properties but have hod zero luck in getting the listview to populate row by row.

    Thanks to whoever helps.
    Attached Images Attached Images
    Last edited by killerofsix; 06-10-2013 at 03:53 PM.

  2. #2
    Registered User
    Join Date
    06-10-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding sheet names to listview

    For anyone that finds this:

    Please Login or Register  to view this content.
    Credit here: http://dailydoseofexcel.com/archives...2/26/listview/

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Adding sheet names to listview

    Why not use a ListBox?

    Please Login or Register  to view this content.
    If you do want to use a ListView add this, or set the View in design mode.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding sheet names to listview

    Listbox won't work because I want a checkbox beside each item. Thank you for your reply though.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Adding sheet names to listview

    Yes it will.

    This will display a checkbox next to each item in the listbox.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-10-2013
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Adding sheet names to listview

    Thank you for that! When I started on this search to solve this problem I came across a post where it was stated that checkboxes can't be displayed in a listbox. Thanks for sorting that out

+ 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