Solved

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

Posted on 2016-11-19
2
59 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 51

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

RoboForm Secure Password Management System

RoboForm Everywhere - Superb Browser Support
Windows / Apple / IOS / Android / Linux / Chrome OS
Use different complex passwords everywhere
Best Secure Password Management by far
Synchronize all of your devices instantly
Safe, Secure & Highly Recommended!

Question has a verified solution.

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

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

751 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