+ Reply to Thread
Results 1 to 23 of 23

ListView Mod!

Hybrid View

ciapul12 ListView Mod! 01-22-2014, 05:38 PM
6StringJazzer Re: ListView Mod! 01-22-2014, 10:17 PM
ciapul12 Re: ListView Mod! 01-23-2014, 03:18 AM
Kyle123 Re: ListView Mod! 01-23-2014, 03:53 AM
ciapul12 Re: ListView Mod! 01-23-2014, 05:46 AM
cytop Re: ListView Mod! 01-23-2014, 06:19 AM
ciapul12 Re: ListView Mod! 01-23-2014, 08:41 AM
Kyle123 Re: ListView Mod! 01-23-2014, 08:44 AM
ciapul12 Re: ListView Mod! 01-23-2014, 10:08 AM
ciapul12 Re: ListView Mod! 01-23-2014, 03:46 PM
Kyle123 Re: ListView Mod! 01-24-2014, 05:21 AM
ciapul12 Re: ListView Mod! 01-24-2014, 06:40 AM
Kyle123 Re: ListView Mod! 01-24-2014, 06:43 AM
ciapul12 Re: ListView Mod! 01-24-2014, 07:09 AM
Kyle123 Re: ListView Mod! 01-24-2014, 07:15 AM
ciapul12 Re: ListView Mod! 01-24-2014, 07:18 AM
ciapul12 Re: ListView Mod! 01-24-2014, 07:36 AM
Kyle123 Re: ListView Mod! 01-24-2014, 07:47 AM
Kyle123 Re: ListView Mod! 01-24-2014, 09:13 AM
ciapul12 Re: ListView Mod! 01-24-2014, 09:53 AM
Kyle123 Re: ListView Mod! 01-24-2014, 10:09 AM
ciapul12 Re: ListView Mod! 01-24-2014, 10:16 AM
Kyle123 Re: ListView Mod! 01-24-2014, 10:20 AM
  1. #1
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: ListView Mod!

    You need to add the listview into the controls toolbox I suspect

  2. #2
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: ListView Mod!

    Grate it works
    THANK YOU!!! :-)
    One more question....
    Previously I have used the standard listbox which was populated with data from sheet 1 but only if the WORD in column Y was "OPEN" THIS MEAN THAT THE REPORT IS STILL OPEN.

    Would it be possible to do with my new ListView??

    Here is the code:
    Sub PopulateLb()
    Dim Y As Integer, X As Integer, ColNum As Integer
        Me.ListBox1.Clear
        Me.ListBox2.Clear
        
        Me.ListBox2.AddItem
        ColNum = 0
        For X = 1 To 19
            Select Case X
                Case 1, 2, 19, 7, 13, 14, 17, 18
                Me.ListBox2.List(0, ColNum) = Cells(2, X).Value
                ColNum = ColNum + 1
            End Select
        Next X
        
        For Y = 3 To EndRow
        If Range("A" & Y).Value = "" Then Exit For
            If Range("Y" & Y).Value = "OPEN" Then
                Me.ListBox1.AddItem
                ColNum = 0
                For X = 1 To 19
                    Select Case X
                        Case 1, 2, 19, 7, 13, 14, 17, 18
                        Me.ListBox1.List(Me.ListBox1.ListCount - 1, ColNum) = Cells(Y, X).Value
                        ColNum = ColNum + 1
                    End Select
                Next X
            End If
        Next Y
    End Sub

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: ListView Mod!

    Quote Originally Posted by Kyle123 View Post
    You need to add the listview into the controls toolbox I suspect
    Hi Kyle123
    Would you be so kind and take a look at my code above please?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] ListView syntax help.
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2013, 05:13 PM
  2. Listview
    By Sergio Sora in forum Non English Excel
    Replies: 0
    Last Post: 06-26-2012, 07:52 AM
  3. Listview checked row delete line in Listview and in worksheet data
    By madforit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2012, 01:00 PM
  4. Can not add/see ListView (MSCOMCTL.OCX ...?)
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2012, 01:04 AM
  5. Listview Interactive
    By njesus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-08-2010, 04:29 PM

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