Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 09-05-2017, 12:18 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 Never Mind . . .

I believe I figured it out by trial-error. Thanks again.

q.b.
Reply With Quote
  #3  
Old 09-05-2017, 04:44 PM
macropod's Avatar
macropod macropod 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 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If you need help with macros, you should post the code you're having issues with; without it, no-one may be able to help.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



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 10:28 PM.


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