Removing a repeated words

Jul 17, 2021
Reaction score

i need a macro for removing a immediate duplicate words in a documents.

example :

Input: financial income income
Output: financial income

Input: unit: unit: INR
Output: unit: INR

Input : gain gain from sales
Output : gain from sales

In the above cases immediate repeated words removed manully like income, unit: & gain
If there is no same repeated word it remains constant and it has not to be changed in anywhere.
Ex: income from sales, unit: INR, gain from investments replaced above words will not be reflect anywhere in a doc because it is having a single word income, unit:, gain.

Wildcard Find/Replace : Please check and make this is in macro... Wild card is not working, please check and review once.
Find = (<*>[email protected])\1
Replace = \1

please do the needful ...


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