> One approach is to use a collection rather than an array. Create a key from
> the number, something like
[quoted text clipped - 12 lines]
> >
> > Any help is greatly appreciated. Thanks.
Read help on Collections. The instruction is 'Add' -- Item and Key are the
arguments. Apart from the VBA help itself, Google for any of dozens of VB or
VBA tutorial sites (collections are pretty much the same in both). In brief,
a collection is an arbitrary list of Key-Item pairs. The Keys must be
unique, and it makes life easier if they are strings. The items are usually
objects, but can be anything, including literal values.
If your exercise is just a one-off to check for duplications (as opposed to
something you will need to do repeatedly), make a copy of your document,
select all, and sort. Then all your INTERROGATORY RESPONSE lines will come
together, and you can check visually for duplications (or if you really have
squillions, check the MVPS site for how to use Find to look for duplicated
paragraphs).
> Hi Jezebel,
>
[quoted text clipped - 58 lines]
>> >
>> > Any help is greatly appreciated. Thanks.
Frankbelly - 28 Nov 2006 21:19 GMT
This is great! Thanks, again, for pointing me in the right direction.
> Read help on Collections. The instruction is 'Add' -- Item and Key are the
> arguments. Apart from the VBA help itself, Google for any of dozens of VB or
[quoted text clipped - 72 lines]
> >> >
> >> > Any help is greatly appreciated. Thanks.