Solved

Exclude superscript footnote numbers when changing the font color in a Word document

Posted on 2016-11-19
2
72 Views
Last Modified: 2016-11-22
Hello,

Is there a way to format all content in a Word (2010) document except superscript numbers linked to footnotes?

On occasion I paste articles from the internet directly into Word documents. I use the standard Ctrl+v paste (vs. Special or TextOnly) because the articles commonly have numbered footnotes with the numbering in a different colored superscript font. (By the way, I realize — and it's OK — that the numbers link back to the footnote in the original webpage rather than to somewhere later in the Word doc.)

After pasting an article, I've noticed that I can Select All and change the font, the font size, and all of the paragraph settings without affecting the appearance of the footnote numbers. However, as soon as a make a change in the font color, it changes the color of the footnote numbers (but not the superscript format or link function).

Is there a way I can make the color change to all the normal text without affecting the color of the footnote numbers?

Thanks
0
Comment
Question by:WeThotUWasAToad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41894615
HI,
pls try these the first to color in red  the selection all except the footnotes placeholders

Sub Macro1()

For Each Char In Selection.Range.Characters
    If Asc(Char) <> 2 Then
        Char.Font.Color = vbRed
    End If
Next
End Sub

Open in new window

the second to change the color of the footnotes placeholders back to automatic
Sub Macro2()
    Set rng = ActiveDocument.Range
    With rng.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Replacement.Font.Color = wdColorAutomatic
        .Text = "^f"
        .Replacement.Text = "^&"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = True
        .Execute Replace:=wdReplaceAll
    End With
End Sub

Open in new window

Regards
0
 

Author Closing Comment

by:WeThotUWasAToad
ID: 41897957
Thanks for the response.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question