KillDuplicateParas

G

Greg Maxey

As you two have moved this discussion to the deep end of the pool I am
going to head for one of the deck chairs and passively observe :)
 
K

Klaus Linke

As you two have moved this discussion to the deep end of the pool I am
going to head for one of the deck chairs and passively observe :)

;-)

I'm not sure whether I understood Helmut correctly.

If "include some formatting conditions" means that you'd want to delete
duplicates only if they have the same formatting, then my approach would not
work... unless you tag the formatting in the string array.
Say the paragraph style:
<Heading 1>Some text
<Normal>Some other text
<Heading 2>Some text
....

Klaus
 
H

Helmut Weber

Hi Klaus,
I'm not sure whether I understood Helmut correctly.


English:
Ordinary posters often come up with additional requirements
which could need a totally different approach to a problem.
So I've tried to keep my solution open for later extensions.
Your solution is similar to a tailor made suit,
Greg's and mine may allow for later adjustments.

German:
Normalen Postern fällt öfters später noch was zusätzliches ein,
was einen ganz anderen Ansatz für ein Problem erfordern könnte.
So habe ich versucht, meine Lösung offen zu halten für Erweiterungen.
Deine Lösung ist einem Maßanzug ähnlich,
Gregs und meine erlauben wohl eher Anpassungen.


Have a nice day.

Schönen Tag noch.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
K

Klaus Linke

Hi Helmut,

Sure!

If you're going for speed, you just about always are talking about
trade-offs... "speed for memory", "speed for complexity" and so on.
A simple bubble sort is slow... but it's also easier to write, and needs
less memory, than a quick sort, or a radix sort.

In Word/VBA, it's often about avoiding calls to the Word Object Model. I
don't think my macro is by necessity harder to adapt than yours or Greg's,
but extensions (if they involve the object model) would likely wipe out most
of its speed advantage.

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top