![]() |
|
#5
|
|||
|
|||
|
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 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to replace one specific heading style with another
|
ubns | Word VBA | 44 | 09-04-2012 08:17 PM |
Bad view when using Find and Find & Replace - Word places found string on top line
|
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Is there a way to use "find/replace" to find italics words?
|
slayda | Word | 3 | 09-14-2011 02:16 PM |
Find and Replace
|
kjxavier | Excel | 3 | 08-12-2011 10:49 PM |
Help with find and replace or query and replace
|
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |