Selecting certain text in word
Hi!
The top of my word document looks like this:
CONFIDENTIAL
Memorandum to
Johnny Damon
cc
Holly Thompson
Tony Bennett
From
I have a bunch of similar word documents in the same folder. The formatting is:
The CONFIDENTIAL is followed by a paragraph symbol, Memorandum to is followed by enter, Johnny Damon is followed by a paragraph symbol, cc is followed by enter, next how ever many names followed by paragraph symbols, then one more paragraph and From is followed by enter.
I want the macro to select Johnny Damon and a separate command to select all the cc names, one by one and then I'm copying and pasting into another table.
I'm fine with the copying and pasting and looping, but I don't know how to get my macro to know what to select. I tried a few things, like ActiveDocument.Sentences(3).Copy which gives me
cc
name
I tried ActiveDocument.Paragraphs(2).Range.Copy and got
Memorandum to
Johnny Damon
I'm running through a bunch of documents on a loop. The Johnny Damon will always be in the same spot, but again, there could be a different number of cc: and I want to pick them up one at a time and stop when there are no more.
Thanks!
|