Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default List all values of a column

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List cumulative values in a column danie Excel Worksheet Functions 1 March 16th 06 04:37 AM
list unique values in a column beechum1 Excel Worksheet Functions 1 March 2nd 06 05:08 AM
create list of unique values from a column with repeated values? Chad Schaben Excel Worksheet Functions 1 July 8th 05 10:25 PM
VBA to set AutoFilter to List all rows with same values in column? Dennis Excel Discussion (Misc queries) 2 June 24th 05 12:37 AM
Check for list of 3 values (alpha) in a column GeeSexAah Excel Programming 2 November 28th 04 11:37 PM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"