Finding, copying, and pasting all sentences with specific strings

S

StanC

I need to search all documents in a folder to find all sentences in each
one that contain four different strings of 8 characters in each string
(e.g. NAV?????, LAB?????). I need to copy those sentences and paste them
into another open document where I'm building a report. I can't figure out
how to search the Sentences Collection in a document for this result. Can
someone help me with coding for this task?

PS: I have a FileSearch routine that cycles through individual documents
and it works well. Stuck on how to loop through the document and find,
copy, and paste the sentences with the target strings.
 
W

Word Heretic

G'day "StanC" <[email protected]>,

When you do a find with no replace, it sets the host range to the
found part. Ranges have sentences.


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


StanC reckoned:
 

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