Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 12-09-2012, 09:17 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

Quote:
Originally Posted by macropod View Post
Hi Binar,

Appropos our previous discussion, you need to do a two-step Find/Replace. First, ensure all of the existing headings you want to modify have a period at the end, via the wildcard Find/Replace, where:
Find = ([!.])(^13)
Replace = \1.\2
and specify the relevant Heading Style for the 'Find'. Make sure the 'Replace' option doesn't have any format specified. After that, do another wildcard Find/Replace, where:
Find = .^13
Replace = ^&
again with the 'Find' format specified as the relevant Heading Style, but this time with the 'Replace' format specified as not underlined. This wildcard Find/Replace is equivalent to the standard one I specified originally - it just means you don't have to keep toggling the wildcard option on/off.

Macropod,
Thank you for your last post. You mention two steps, however after much testing I think I'm missing a first step.

I am not he original author of this 600 page manual I'm working on. It looks like the previous author manually inserted PERIODS at the end of some HEADING styles. In other words, this manual I think first needs to be cleaned of all unaccounted PERIODS before I do the First and Second step you mention.

Can you please advise me how I could select HEADING Styles 1,2,4,5 and 6 all at the same time and then do a Find/Replace operation that deletes all of the unwanted periods located at the end of all HEADINGs? My goal is to first clean all of the HEADINGS of unaccounted PERIODS that were inserted by a previous author of this manual.

My theory is if I first clean all of the unaccounted PERIODS first and then apply the two steps you mention in your previous post I will get results that are error free. So instead of two steps to do I will be doing 3 steps:
  • Step #1. Clean entire manual of unaccounted periods at the end of Headings.
  • Step #2. Run this operation: Find = ([!.])(^13) - Replace = \1.\2
  • Step #3. Run this operation: Find = .^13 - Replace = ^&
As I mentioned this manual is 600 pages and the worst part is that it contains 900 HEADINGS (Levels 1 thru 6 Heading Styles). All of them need to be underlined with a PERIOD located at the end with no underline applied to the PERIOD. Therefore, I am really motivated to make this work because doing this manually would take a very long time. Any help will be greatly appreciated. Thanks again.
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 07:36 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