View Single Post
 
Old 12-09-2012, 09:17 PM
binar binar is offline Windows XP Office 2007
Advanced Beginner
 
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