A
andreas
Dear Experts:
below macro highlights all occurrences of different font formatting in
footnotes. In this example the built-in "footnote text" style has the
font "Times New Roman". The macro highlights all footnotes where "non-
Times-New-Roman" font formatting on some words has been applied.
Now my questions:
1.
the macro highlights the WHOLE footnote where an occurence of "Non-
Times-New-Roman" font formatting is found. Is itpossible to just
highlight the words/characters that have been differently formatted?
2.
Is it possible to have Word show a msgbox after running the macro
saying:
Highlighting has been applied or no occurrences of a different
footnote font found
Help is appreciated. Thank you very much in advance.
Regards, Andreas
Dim myFootnote As Footnote
For Each myFootnote In ActiveDocument.Footnotes
If Not myFootnote.Range.Font.Name = "Times New Roman" Then
myFootnote.Range.HighlightColorIndex = wdBlue
End If
Next myFootnote
End Sub
below macro highlights all occurrences of different font formatting in
footnotes. In this example the built-in "footnote text" style has the
font "Times New Roman". The macro highlights all footnotes where "non-
Times-New-Roman" font formatting on some words has been applied.
Now my questions:
1.
the macro highlights the WHOLE footnote where an occurence of "Non-
Times-New-Roman" font formatting is found. Is itpossible to just
highlight the words/characters that have been differently formatted?
2.
Is it possible to have Word show a msgbox after running the macro
saying:
Highlighting has been applied or no occurrences of a different
footnote font found
Help is appreciated. Thank you very much in advance.
Regards, Andreas
Dim myFootnote As Footnote
For Each myFootnote In ActiveDocument.Footnotes
If Not myFootnote.Range.Font.Name = "Times New Roman" Then
myFootnote.Range.HighlightColorIndex = wdBlue
End If
Next myFootnote
End Sub