Re: Filtering Column Duplicates
From: keepITcool (xrrcvgpbby_at_puryyb.ay)
Date: 01/26/05
- Next message: Paolo De Laurentiis: "Re: Posting again. Please Help! How to "track changes" using VBA"
- Previous message: Toinett: "Re: go from input cell to input cell"
- In reply to: Craig Freeman: "Re: Filtering Column Duplicates"
- Next in thread: Craig Freeman: "Re: Filtering Column Duplicates"
- Reply: Craig Freeman: "Re: Filtering Column Duplicates"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 13:00:03 -0800
Craig,
Anomaly is in fact a programming error, causing the last item added to
the dictionary to be discarded in the writeback to the array.
line For n = 1 To .Count - 1
s/b For n = 1 To .Count
Re latebound:
good to see you've done a bit of homework, and understood.
I'll rephrase what I thought obvious, but apparently wasn't...
add reference to Microsoft Scripting Runtime
line dim oDic as Object
s/b dim oDic as Dictionary
line set oDic = CreateObject(etc)
s/b set oDic = new dictionary
ofcourse changing the 0 (back) to TextCompare is not needed,
but may make the code easier to read.
HTH
-- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam Craig Freeman wrote : > keepITcool, > > Cool...that did the trick. > > Interestingly enough, the same anomalies that I commented on with > Tom's modified code, also appeared with your suggestion..? I'd like > to understand why this is..? The workaround seems to be adding an > erroneous row of data at the end of the worksheet. > > > You'll have better performance with the early bound variant, > > by adding the reference, and swapping the commented lines. > > for DIM and SET > > Sorry, I'm very new to this game and still learning. I've read that > 'Late-bound' means that the interface is not known at compile time, > and that 'Early-bound' is known at compile time - and as you stated, > this increases performance. Kinda of like stating a fact before the > question is asked. What I'm not sure of, is the adding the reference > part and which commented lines for DIM and SET to switch. Apologies > if this is obvious. > > thanks again, > Craig Freeman
- Next message: Paolo De Laurentiis: "Re: Posting again. Please Help! How to "track changes" using VBA"
- Previous message: Toinett: "Re: go from input cell to input cell"
- In reply to: Craig Freeman: "Re: Filtering Column Duplicates"
- Next in thread: Craig Freeman: "Re: Filtering Column Duplicates"
- Reply: Craig Freeman: "Re: Filtering Column Duplicates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|