Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 12-05-2012, 08:44 PM
binar binar is offline Challenging Heading Edit with Find Replace Windows XP Challenging Heading Edit with Find Replace Office 2007
Advanced Beginner
Challenging Heading Edit with Find Replace
 
Join Date: Aug 2010
Posts: 41
binar is on a distinguished road
Default Followup

Thanks for your last post Macropod. I have been busy testing it and now I'm hoping you can advise me how to modify your code below:

Find = ([!.])(^13)
Replace = \1.\2

Let me say that your code makes quick work of adding a period at the end with no underline applied as long as I specify HEADING 2. Below is an example of the successful result I got for Heading 2:

3.2 Para Title With Heading 2 Specified.

However, if I specify HEADING 3, 4, 5 or Heading 6, I get incorrect results. Below is an example of the incorrect result I get when I specify HEADING 5 style:

3.6.5.5.5 Para Title With Heading 5 Specified.

It is incorrect because the "d" located at the end is missing the underline. Below is the correct result the Military Standard specifies for Heading 5:

3.6.5.5.5 Para Title With Heading 5 Specified.

My hope is you can advise me how to modify your code below:

Find = ([!.])(^13)
Replace = \1.\2

So that what it successfully does for Heading2 it can also do the same for HEADING 3, 4, 5 or Heading 6.

Any help will be greatly appreciated. Thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Challenging Heading Edit with Find Replace Macro to replace one specific heading style with another ubns Word VBA 44 09-04-2012 08:17 PM
Challenging Heading Edit with Find 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
Challenging Heading Edit with Find Replace Is there a way to use "find/replace" to find italics words? slayda Word 3 09-14-2011 02:16 PM
Challenging Heading Edit with Find Replace Find and Replace kjxavier Excel 3 08-12-2011 10:49 PM
Challenging Heading Edit with Find 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 08:44 AM.


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