View Single Post
 
Old 09-05-2017, 12:01 PM
qubie qubie is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Aug 2016
Posts: 24
qubie is on a distinguished road
Default Find and Replace the Next One, and then the Next One . . . .

Greetings,

I am puzzled by a macro problem (Word 2007) to which I have not found satisfactory answer. It has to do (I think) with the Wrap Property. A simplified example follows.

I am working with content that looks something like this:

My dog will come inside the house, but only on the following terms: text I do not care about text I do not care about text I do not care about. My dog will come inside but only on the following terms: text I do not care about text I do not care about text I do not care about.

I developed a macro that is supposed to retain only the text that is displayed above in red font.

Unfortunately, when I run it, the macro keeps the text below that I have highlighted in blue:

My dog will come inside the house, but only on the following terms: text I do not care about text I do not care about text I do not care about. My dog will come inside but only on the following terms: text I do not care about text I do not care about text I do not care about.

What have I overlooked?

Thanks and regards,

q.b.
Reply With Quote