Solved

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

Posted on 2016-11-19
2
21 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
2 Comments
 
LVL 48

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This article will show you how to use shortcut menus in the Access run-time environment.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now