Scraps
09-14-2015, 06:21 AM
Apologies in advance for what is perhaps (I hope) is an easy solution - I've done a fair bit of simple work with VBA but I'm a bit stuck with this one.
How do i create a macro that can check specific paragraphs in a text document for duplications, then output a message or similar so that any instances can be manually located.
I don't wish to check every single paragraph in the document as there will be lots of duplicates that are not relevant - just paragraphs that (fortunately) follow on immediately after a non-variable line of text.
eg
<PNRS>
This paragraph is going to be a duplicate
....
<PNRS>
This paragraph is unique
....
<PNRS>
This paragraph is going to be a duplicate
etc
Could anyone please help or point me in the right direction. Thanks!
PS Word 2010/2013
How do i create a macro that can check specific paragraphs in a text document for duplications, then output a message or similar so that any instances can be manually located.
I don't wish to check every single paragraph in the document as there will be lots of duplicates that are not relevant - just paragraphs that (fortunately) follow on immediately after a non-variable line of text.
eg
<PNRS>
This paragraph is going to be a duplicate
....
<PNRS>
This paragraph is unique
....
<PNRS>
This paragraph is going to be a duplicate
etc
Could anyone please help or point me in the right direction. Thanks!
PS Word 2010/2013