+ Reply to Thread
Results 1 to 3 of 3

List all values of a column

  1. #1
    peterfarge@hotmail.com
    Guest

    List all values of a column

    Hello NG,

    I have a worksheet with thousends of rows. I want to list all different
    values in a listbox. Like in the Excel Autofilter feature (where are
    all different elements of a column listed). But how can I get this
    list?

    I need a fast algo, because I want to do it for all columns. Sometimes
    the .xls file uses all 65.000 rows. So hole file size can be bigger
    than 100MB.


    Best wishes

    Peter Farge


  2. #2
    Ron de Bruin
    Guest

    Re: List all values of a column

    Check out
    http://www.contextures.com/xladvfilter01.html#FilterUR

    Sheets("Sheet1").Columns("A").AdvancedFilter _
    Action:=xlFilterCopy, _
    CopyToRange:=Sheets("Sheet2").Range("A1"), _
    Unique:=True



    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    <peterfarge@hotmail.com> wrote in message news:1141315371.426975.60680@z34g2000cwc.googlegroups.com...
    > Hello NG,
    >
    > I have a worksheet with thousends of rows. I want to list all different
    > values in a listbox. Like in the Excel Autofilter feature (where are
    > all different elements of a column listed). But how can I get this
    > list?
    >
    > I need a fast algo, because I want to do it for all columns. Sometimes
    > the .xls file uses all 65.000 rows. So hole file size can be bigger
    > than 100MB.
    >
    >
    > Best wishes
    >
    > Peter Farge
    >




  3. #3
    peterfarge@hotmail.com
    Guest

    Re: List all values of a column

    Thanks a lot!
    I was looking for a command like this for hours. Thanks:-)


+ 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