ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   List all values of a column (https://www.excelbanter.com/excel-programming/354882-list-all-values-column.html)

[email protected]

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


Ron de Bruin

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


wrote in message ups.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




[email protected]

List all values of a column
 
Thanks a lot!
I was looking for a command like this for hours. Thanks:-)



All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com