Results 1 to 5 of 5

Thread: Question [Excel][VBA][Form][ListView] Get list subitems

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2021
    Posts
    4

    Question Question [Excel][VBA][Form][ListView] Get list subitems

    Hi guys,

    Is there any way to get the Column from a listview? I need to triagulate the data in a listview and get column and row for the item selected. The listItem (row) I can get, but the listSubitem (column) I have not found any viable way to get them.
    Can things like hotTracking and HoverSelection help with this?

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    4,512

    Re: Question [Excel][VBA][Form][ListView] Get list subitems


  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2021
    Posts
    4

    Re: Question [Excel][VBA][Form][ListView] Get list subitems

    That shows how to get rows, not columns unfortunately. are there any other alternative table like structures that can return clicked row and column?

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    4,512

    Re: Question [Excel][VBA][Form][ListView] Get list subitems

    Have you tried the MS(H)FlexGrid?

  5. #5
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    2,506

    Re: Question [Excel][VBA][Form][ListView] Get list subitems

    And as i told you in your original post in VB6: There is a way to "hittest" a column in a ListView, and has been discussed here on the forum:
    https://www.vbforums.com/showthread....hlight=hittest
    One System to rule them all, One IDE to find them,
    One Code to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    For health reasons i try to avoid reading unformatted Code

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width