C
Colleen
I have written the following macro for our firm:
With ActiveDocument.Styles("Normal").Font
.Name = "Times New Roman"
.Size = 12
End With
Selection.WholeStory
Selection.Style = ActiveDocument.Styles("Normal")
Application.GoBack
Our firm default was CG Times until about a year ago. However, often there
are documents that are re-used (don't get me started) and they are still in
the old CGT font. Problem is, sometimes the font was applied via the Normal
style, and sometimes it was directly formatted. At any rate, this macro
tries to cover all the bases. I also wanted to be able to reapply the
Normal style without overriding any direct font attributes (i.e., bold,
underline, etc.). This works perfectly except in this unusual situation.
If the first paragraph with text is formatted with one of those attributes
(i.e., bold), then any bold formatting is removed throughout the document.
Any other attributes, such as italics, are left alone. All direct
formatting is left alone as long as the first paragraph with text in it does
not have any direct font formatting. It's really strange. Even if I put
blank paragraphs above the first one, it still looks at the first paragraph
with text in it as the deciding factor.
Anyone have any ideas on this?
Colleen
With ActiveDocument.Styles("Normal").Font
.Name = "Times New Roman"
.Size = 12
End With
Selection.WholeStory
Selection.Style = ActiveDocument.Styles("Normal")
Application.GoBack
Our firm default was CG Times until about a year ago. However, often there
are documents that are re-used (don't get me started) and they are still in
the old CGT font. Problem is, sometimes the font was applied via the Normal
style, and sometimes it was directly formatted. At any rate, this macro
tries to cover all the bases. I also wanted to be able to reapply the
Normal style without overriding any direct font attributes (i.e., bold,
underline, etc.). This works perfectly except in this unusual situation.
If the first paragraph with text is formatted with one of those attributes
(i.e., bold), then any bold formatting is removed throughout the document.
Any other attributes, such as italics, are left alone. All direct
formatting is left alone as long as the first paragraph with text in it does
not have any direct font formatting. It's really strange. Even if I put
blank paragraphs above the first one, it still looks at the first paragraph
with text in it as the deciding factor.
Anyone have any ideas on this?
Colleen