Results 1 to 10 of 10

Thread: vba - Extract Unique values from Single Column via Colllection and Dictionary

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Mentor 大灰狼1976's Avatar
    Joined
    Dec 2018
    Location
    SuZhou China
    Posts
    479
    Location
    I made an interesting thing. The results are sorted.
    But I did AutoFilter in advance.
    The code like below:
    Sub Unique_List_via_AutoFilter()
        Dim arr
        arr = Application.Substitute(ActiveSheet.AutoFilter.Filters.Item(1).Criteria1, "=", "")
        [f2].Resize(UBound(arr)) = Application.Transpose(arr)
    End Sub
    Attached Files Attached Files

Posting Permissions

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