Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default AdvancedFilter to Array

Hello,

I would like to optimase my code. Now I have this:
'
Dim rng1 As Range, c1 As Byte, c2 As Byte
Worksheets("sheet1").Select
Set rng1 = Range(Cells(1, 2), Cells(1, 2).End(xlDown))
rng1.AdvancedFilter xlFilterCopy, , Cells(1, 11), True
c1 = Cells(1, 1).CurrentRegion.Rows.Count

ReDim tblUniqueData(c1)
For c2 = 1 To c1
tblUniqueData(c2) = Cells(c2 + 1, 11)
Next councik2
Cells(1, 11).CurrentRegion.Clear

Is any way to made so?
Dim varArray() as String
varArray = _
rng1.AdvancedFilter xlFilterCopy, , Cells(1, 11), True
It's possible?

and next quastion:)
1) How to sort varArray without "Loop" or "For", I heard that it's
possible when dimmension is in Selection
2) How to get Unique Value (not only one field) from varArray?

Best Reg.
Witek

*** Sent via Developersdex http://www.developersdex.com ***
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
Using AdvancedFilter on range of data Connie Excel Discussion (Misc queries) 2 October 19th 06 08:57 PM
Selection to Array then unique with different fields/columns like advancedfilter Witt Excel Programming 0 November 5th 04 07:12 PM
Selection to Array then unique with different fields/columns like advancedfilter Witt Excel Programming 0 November 5th 04 06:52 PM
Help with AdvancedFilter method Sumanth Suri Excel Programming 1 November 21st 03 06:02 AM
AdvancedFilter question Debra Dalgleish[_2_] Excel Programming 0 September 1st 03 12:14 AM


All times are GMT +1. The time now is 01:52 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"