Results 1 to 5 of 5

Populate a Listbox with Unique data of filtered range

Threaded View

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Populate a Listbox with Unique data of filtered range

    hi,
    i am using below code to populate data with unique data of range f10:f1000

    Private Sub UserForm_Initialize()
    
        Dim arrUnqItems As Variant
    
        With Sheets("SHEET1")
            .Range("F10", .Cells(.Rows.Count, "F").End(xlUp)).AdvancedFilter xlFilterCopy, , .Cells(1, .Columns.Count), True
            arrUnqItems = Application.Transpose(.Range(.Cells(2, .Columns.Count), .Cells(.Rows.Count, .Columns.Count).End(xlUp)).Value)
            .Columns(.Columns.Count).Clear
        End With
    
        Me.ListBox1.Clear
        Me.ListBox1.List = arrUnqItems
    
        Erase arrUnqItems
    
    End Sub
    i want to change above code to apply at filtered data

    i want to show unique values of filtered data only

    thank you
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Populate unique listbox values from combobox selection
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2017, 05:34 PM
  2. Populate ListBox with data from named range
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2016, 12:06 PM
  3. Populate ListBox with Filtered Range
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2015, 01:09 AM
  4. [SOLVED] Populate a listbox with unique values from a range on a worksheet
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 04:18 PM
  5. Populate a textbox on Userform with data from a filtered range using VBA
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2014, 04:20 AM
  6. [SOLVED] populate listbox with unique text
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-02-2013, 03:50 PM
  7. Setting up a validation of data listbox to provide the unique items within a range
    By jedale@gmail.com in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-30-2006, 04:10 AM

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