Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Results of Advanced Filter to Array
I'm using this line of code to get unique values only. Is there a way
to get the results of the advanced filter into an array instead of putting it on the worksheet? TIA, James Range(Selection.Address).AdvancedFilter Action:=xlFilterCopy, Unique:=True, Copytorange:=[h3] |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Results of Advanced Filter to Array
Not directly. You could run it, put the results range into an array and
clear the results range. -- Regards, Tom Ogilvy "Zone" wrote: I'm using this line of code to get unique values only. Is there a way to get the results of the advanced filter into an array instead of putting it on the worksheet? TIA, James Range(Selection.Address).AdvancedFilter Action:=xlFilterCopy, Unique:=True, Copytorange:=[h3] |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Results of Advanced Filter to Array
Thank you, Tom.
Tom Ogilvy wrote: Not directly. You could run it, put the results range into an array and clear the results range. -- Regards, Tom Ogilvy "Zone" wrote: I'm using this line of code to get unique values only. Is there a way to get the results of the advanced filter into an array instead of putting it on the worksheet? TIA, James Range(Selection.Address).AdvancedFilter Action:=xlFilterCopy, Unique:=True, Copytorange:=[h3] |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Results of Advanced Filter to Array
Zone wrote:
I'm using this line of code to get unique values only. Is there a way to get the results of the advanced filter into an array instead of putting it on the worksheet? TIA, James Range(Selection.Address).AdvancedFilter Action:=xlFilterCopy, Unique:=True, Copytorange:=[h3] If the functions in the freely downloadable file at http://home.pacbell.net/beban are available to your workbook, then instead of using the Advanced Filter you could use arr = ArrayUniques(Selection) Alan Beban |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Results of Advanced Filter to Array
Thanks, Alan.
James Alan Beban wrote: Zone wrote: I'm using this line of code to get unique values only. Is there a way to get the results of the advanced filter into an array instead of putting it on the worksheet? TIA, James Range(Selection.Address).AdvancedFilter Action:=xlFilterCopy, Unique:=True, Copytorange:=[h3] If the functions in the freely downloadable file at http://home.pacbell.net/beban are available to your workbook, then instead of using the Advanced Filter you could use arr = ArrayUniques(Selection) Alan Beban |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Advanced Filter returning complete database not filtered results | Excel Worksheet Functions | |||
Why won't advanced filter return filter results? | Excel Worksheet Functions | |||
Concatenate Unique advanced filter results | Excel Discussion (Misc queries) | |||
refresh advanced filter results | Excel Discussion (Misc queries) | |||
Inconsistent Results: Advanced Filter Unique Records Only | Excel Discussion (Misc queries) |