View Single Post
 
Old 12-22-2012, 09:21 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

Macropod,
Thanks a million for your macro that you posted in your last post. Yesterday, I got to a stage in the manual where I had to address all of the (not underlined) PERIODS located at the end of all the (underlined) HEADING (Levels 1 through 6). In short, I ran your macro in my file and got the following results:

Your macro ran through 600 pages in very little time without a hiccup. It was successful in adding ending PERIODS to all HEADINGs (Levels 1 thru 6) with no UNDERLINE applied.

However, something in the code is making it subtract an additional single UNDERLINE space that is not needed. In other words, the macro does a great job of not applying an UNDERLINE to the PERIOD character located at the end, but then it goes a step beyond and also subtracts an additional UNDERLINE space from the last letter character located to the left of the PERIOD. In short, it looks like the example below:

3.4 Heading 2 Example.

What is incorrect is the "e" located to the left of the PERIOD character has no UNDERLINE applied. However, the "e" before running the Macro did have an UNDERLINE applied that was appled via the Heading 2 style setup.

In short, to comply to the Military Standard I had to go back and manually select each letter character located to the LEFT of the PERIOD and then apply the missing UNDERLINE by pressing CNTRL+U on the keyboard. THe document has HEADINGs paragraphs that number in the hundreds, so this took a long time. But the bright side is that I did not have to concern myself with adding PERIOD characters at the end with no UNDERLINE applied because your macro took care of that.

So in retrospect your macro was helpful, but it would be perfect if it could be prevented from also removing the additional UNDERLINE space located to the left of the PERIOD character.

Nevertheless, thanks for your help Macropod. I enjoy what I am learning from this thread. Have a great XMAS and a happy New Year!

Last edited by macropod; 12-22-2012 at 10:52 PM. Reason: Deleted unnecessary quote of entire post replied to
Reply With Quote