Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-05-2017, 12:01 PM
qubie qubie is offline Find and Replace the Next One, and then the Next One . . . . Windows 7 64bit Find and Replace the Next One, and then the Next One . . . . Office 2007
Novice
Find and Replace the Next One, and then the Next One . . . .
 
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Find and Replace, can Word stop after each Replace? wardw Word 1 06-08-2017 02:47 PM
Find and Replace the Next One, and then the Next One . . . . VBA Batch Find & Replace for all MSOffice extensions, to replace File Name and Content of the File QA_Compliance_Advisor Word VBA 11 09-11-2014 11:51 PM
Find and Replace the Next One, and then the Next One . . . . Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
Find and Replace the Next One, and then the Next One . . . . Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Find and Replace the Next One, and then the Next One . . . . Help with find and replace or query and replace shabbaranks Excel 4 03-19-2011 08:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft