View Single Post
 
Old 02-07-2016, 03:09 PM
rok123 rok123 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jan 2016
Posts: 8
rok123 is on a distinguished road
Default referenceing/finding word from one documents into another documents and indicating their location

Would greatly appreciate your help. I would like to do the following:

I have two documents summarydoc and detailsdoc, VBA will
1. Search the bold words or phrases (key words) in summarydoc,
2. find their synonyms from the word thesaurus
3. look for the key words and synonyms in the detaildoc
4. Highlight the found key words/synonyms in the detaildoc
5. In the summarydoc by the side of the searched word, indicate the paragraph number of the detaildoc & word/synonyms pair that found
6. Remove the bold formatting of key words from the summarydoc

Following is example of input documents and resulted documents.

Starting documents:
Summarydoc
Tennis is played by millions of recreational players and is also a popular worldwide spectator racket sport.
Detaildoc
[001] Tennis is a racket sport that can be played individually against a single opponent (singles) or between two teams of two players each (doubles).
[002] Tennis is an Olympic sport and is played at all levels of society and at all ages.

Resulted documents
Summarydoc
Tennis (tennis [001], [002]) is played by millions of recreational players and is also a popular worldwide spectator racket sport (racket sport [001]).

Detaildoc
[001] Tennis is a racket sport that can be played individually against a single opponent (singles) or between two teams of two players each (doubles).
[002] Tennis is an Olympic sport and is played at all levels of society and at all ages.
Reply With Quote