Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-06-2012, 01:49 AM
macropod's Avatar
macropod macropod is offline Iterative / sequential find and replace Windows 7 64bit Iterative / sequential find and replace Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

The problem doesn't have anything to do with intra-paragraph returns, but with the fact you have empty paragraphs. To work around that, change:
.Paragraphs(i).Range.Words.First = i
to:
If .Paragraphs(i).Range.Words.Count > 2 Then .Paragraphs(i).Range.Words.First = i
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
find and replace



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterative / sequential find and replace Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Iterative / sequential find and replace Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
Iterative / sequential find and replace Find and Replace kjxavier Word 6 08-19-2011 09:56 PM
Iterative / sequential find and replace Find and Replace kjxavier Word 1 08-12-2011 08:57 AM
Iterative / sequential find and replace 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 03:43 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