Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 200
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default 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
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
Advanced Filter returning complete database not filtered results DianeG Excel Worksheet Functions 4 December 12th 08 02:33 PM
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
Concatenate Unique advanced filter results SteveT Excel Discussion (Misc queries) 1 August 15th 06 03:17 PM
refresh advanced filter results eagle Excel Discussion (Misc queries) 2 November 18th 05 09:15 AM
Inconsistent Results: Advanced Filter Unique Records Only KB Excel Discussion (Misc queries) 1 March 25th 05 02:34 PM


All times are GMT +1. The time now is 10:37 AM.

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

About Us

"It's about Microsoft Excel"